Author: paullanders
Date: Wed Feb 10 00:37:20 2016
New Revision: 39348
URL: http://svn.gna.org/viewcvs/gnustep?rev=39348&view=rev
Log:
Ignore file owner when copying subfolders recursively, as is done with the top
level item.
Modified:
libs/base/branches/gnustep_testplant_branch/Source/NSFileManager.m
Modified: libs/base/branches/gnustep_testplant_branch/Source/NSFileManager.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/branches/gnustep_testplant_branch/Source/NSFileManager.m?rev=39348&r1=39347&r2=39348&view=diff
==============================================================================
--- libs/base/branches/gnustep_testplant_branch/Source/NSFileManager.m
(original)
+++ libs/base/branches/gnustep_testplant_branch/Source/NSFileManager.m Wed Feb
10 00:37:20 2016
@@ -2893,6 +2893,12 @@
if ([fileType isEqual: NSFileTypeDirectory])
{
+ attributes = AUTORELEASE([attributes mutableCopy]);
+ [(NSMutableDictionary*)attributes removeObjectForKey:
NSFileOwnerAccountID];
+ [(NSMutableDictionary*)attributes removeObjectForKey:
NSFileGroupOwnerAccountID];
+ [(NSMutableDictionary*)attributes removeObjectForKey:
NSFileGroupOwnerAccountName];
+ [(NSMutableDictionary*)attributes setObject: NSUserName()
+ forKey: NSFileOwnerAccountName];
BOOL dirOK;
dirOK = [self createDirectoryAtPath: destinationFile
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs