mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-21 04:32:03 +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
6aa0b94342
commit
62a48bb19c
1 changed files with 3 additions and 3 deletions
|
@ -1218,10 +1218,10 @@ static NSFileManager* defaultManager = nil;
|
||||||
pathContent: (NSString*)otherPath
|
pathContent: (NSString*)otherPath
|
||||||
{
|
{
|
||||||
#if HAVE_SYMLINK
|
#if HAVE_SYMLINK
|
||||||
const char* lpath = [self fileSystemRepresentationWithPath: path];
|
const char* newpath = [self fileSystemRepresentationWithPath: path];
|
||||||
const char* npath = [self fileSystemRepresentationWithPath: otherPath];
|
const char* oldpath = [self fileSystemRepresentationWithPath: otherPath];
|
||||||
|
|
||||||
return (symlink(lpath, npath) == 0);
|
return (symlink(oldpath, newpath) == 0);
|
||||||
#else
|
#else
|
||||||
return NO;
|
return NO;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue