ObjFW  Diff

Differences From Artifact [1fc9513872]:

To Artifact [bc8629617c]:


26
27
28
29
30
31
32
33

34


35

36
37
38
39
40
41
42
26
27
28
29
30
31
32

33
34
35
36

37
38
39
40
41
42
43
44







-
+

+
+
-
+







static OFZIP *app;

static void
setPermissions(OFString *destination, OFString *source)
{
#ifdef OF_HAVE_CHMOD
	OFFileManager *fileManager = [OFFileManager defaultManager];
	mode_t mode;
	mode_t mode = [fileManager permissionsOfItemAtPath: source];

	/* Only allow modes that are safe */
	mode &= (S_IRWXU | S_IRWXG | S_IRWXO);
	mode = [fileManager permissionsOfItemAtPath: source];

	[fileManager changePermissionsOfItemAtPath: destination
				       permissions: mode];
#endif
}

@implementation GZIPArchive
+ (void)initialize