Fixed creating symbolic links - the old path and new path were in reverse

order


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10175 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-06-13 15:30:38 +00:00
parent c83309d4e7
commit 97830ac872

View file

@ -1218,10 +1218,10 @@ static NSFileManager* defaultManager = nil;
pathContent: (NSString*)otherPath
{
#if HAVE_SYMLINK
const char* lpath = [self fileSystemRepresentationWithPath: path];
const char* npath = [self fileSystemRepresentationWithPath: otherPath];
const char* newpath = [self fileSystemRepresentationWithPath: path];
const char* oldpath = [self fileSystemRepresentationWithPath: otherPath];
return (symlink(lpath, npath) == 0);
return (symlink(oldpath, newpath) == 0);
#else
return NO;
#endif