mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
c83309d4e7
commit
97830ac872
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue