diff options
author | Christopher Faylor <me@cgf.cx> | 2006-05-08 15:20:04 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-05-08 15:20:04 +0000 |
commit | 56aed3f578544d2eedebde560da6d0a7966fa018 (patch) | |
tree | 6aa4343c87bfa3e8582d4fbf28362b7ef9d7f315 | |
parent | 6c47d5b7e7190e3078c098c14ec1350b2747093d (diff) | |
download | newlib-56aed3f578544d2eedebde560da6d0a7966fa018.zip newlib-56aed3f578544d2eedebde560da6d0a7966fa018.tar.gz newlib-56aed3f578544d2eedebde560da6d0a7966fa018.tar.bz2 |
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix typo which caused
test for ".." to be skipped.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index cb54456..42addea 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2006-05-08 Christian Franke <Christian.Franke@t-online.de> + + * fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix typo which + caused test for ".." to be skipped. + 2006-05-02 Christopher Faylor <cgf@timesys.com> * external.cc (cygwin_internal): Set errno on failure. diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 7470dcb..812ba9a 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -1787,7 +1787,7 @@ fhandler_disk_file::readdir (DIR *dir, dirent *de) dir->__flags |= dirent_saw_dot; res = 0; } - else if (!(dir->__flags & dirent_saw_dot)) + else if (!(dir->__flags & dirent_saw_dot_dot)) { strcpy (de->d_name , ".."); de->d_ino = readdir_get_ino (dir, pc.normalized_path, true); |