From 56aed3f578544d2eedebde560da6d0a7966fa018 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 8 May 2006 15:20:04 +0000 Subject: [PATCH] * fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix typo which caused test for ".." to be skipped. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_disk_file.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index cb54456ec..42addeaa9 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2006-05-08 Christian Franke + + * fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix typo which + caused test for ".." to be skipped. + 2006-05-02 Christopher Faylor * 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 7470dcb94..812ba9af7 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);