git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/freeze-1_6_0@16140 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-03-06 16:47:13 +00:00
parent 7c406f9d81
commit 6e763f0599
2 changed files with 4 additions and 1 deletions

View file

@ -2,6 +2,9 @@
* Source/NSData.m: Fix reference to zone of deallocated object.
Bug reported by Roland Schwingel
* Source/NSFileManager.m: Fix typo (using logical or rather than
bitwise or) in call to access()
Bug reported by Roland Schwingel
2003-02-17 <woudshoo@agilisys.com>

View file

@ -1246,7 +1246,7 @@ static NSFileManager* defaultManager = nil;
cpath = [self fileSystemRepresentationWithPath:
[path stringByDeletingLastPathComponent]];
return (access(cpath, X_OK || W_OK) != 0);
return (access(cpath, X_OK | W_OK) != 0);
#endif
}
}