ObjFW  Diff

Differences From Artifact [ec05b83de8]:

To Artifact [3ca97fcaef]:


31
32
33
34
35
36
37

38
39

40
41
42
43
44
45
46
31
32
33
34
35
36
37
38
39

40
41
42
43
44
45
46
47







+

-
+








static OFArc *app;

static void
setPermissions(OFString *path, OFTarArchiveEntry *entry)
{
#ifdef OF_FILE_MANAGER_SUPPORTS_PERMISSIONS
	OFNumber *mode = [OFNumber numberWithUnsignedShort: entry.mode & 0777];
	of_file_attributes_t attributes = [OFDictionary
	    dictionaryWithObject: [OFNumber numberWithUInt16: entry.mode]
	    dictionaryWithObject: mode
			  forKey: of_file_attribute_key_posix_permissions];

	[[OFFileManager defaultManager] setAttributes: attributes
					 ofItemAtPath: path];
#endif
}