diff --git a/ChangeLog b/ChangeLog index 57514d78a..cf60ea9aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Jun 21 12:05:00 1999 Richard Frith-Macdonald + + * Source/NSFileManager.m: Fixed error recursing into directory. + Mon Jun 21 9:45:00 1999 Richard Frith-Macdonald Mostly updates of range checking code and change of FastArray and diff --git a/Source/NSFileManager.m b/Source/NSFileManager.m index 2d60ad0ce..fecb92c62 100644 --- a/Source/NSFileManager.m +++ b/Source/NSFileManager.m @@ -1243,7 +1243,7 @@ static NSFileManager* defaultManager = nil; // Do not follow links if (!flags.isFollowing) { - if (!lstat(cpath, &statbuf)) + if (lstat(cpath, &statbuf) != 0) break; // If link then return it as link if (S_IFLNK == (S_IFMT & statbuf.st_mode)) @@ -1251,7 +1251,7 @@ static NSFileManager* defaultManager = nil; } else { - if (!stat(cpath, &statbuf)) + if (stat(cpath, &statbuf) != 0) break; } if (S_IFDIR == (S_IFMT & statbuf.st_mode))