Fixup copying of symlinks

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13053 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-03-09 12:10:08 +00:00
parent 8921d84a91
commit ca3efa2e7a

View file

@ -1955,8 +1955,11 @@ static SEL swfsSel = 0;
} }
else if ([fileType isEqual: NSFileTypeSymbolicLink]) else if ([fileType isEqual: NSFileTypeSymbolicLink])
{ {
NSString *path;
path = [self pathContentOfSymbolicLinkAtPath: sourceFile];
if (![self createSymbolicLinkAtPath: destinationFile if (![self createSymbolicLinkAtPath: destinationFile
pathContent: sourceFile]) pathContent: path])
{ {
if (handler) if (handler)
{ {
@ -1968,10 +1971,14 @@ static SEL swfsSel = 0;
nil]; nil];
if (![handler fileManager: self if (![handler fileManager: self
shouldProceedAfterError: errorInfo]) shouldProceedAfterError: errorInfo])
return NO; {
return NO;
}
} }
else else
return NO; {
return NO;
}
} }
} }
else else