Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-01-26 05:54:54 +0300
committerChristopher Faylor <me@cgf.cx>2006-01-26 05:54:54 +0300
commit4207eed323b9755b9ddf71c4840d222e90fb2830 (patch)
tree80f477bb31c775332a007e350cb8e32fe071f105 /winsup/cygwin/fhandler_disk_file.cc
parentc40776e5a2e4342d069ec39105f90a33bfc8ea28 (diff)
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix test for
dirent_isroot to use the correct boolean operator.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index ab277815b..b534b7fb0 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -1501,7 +1501,7 @@ fhandler_disk_file::readdir (DIR *dir, dirent *de)
fnunmunge (de->d_name, buf.cFileName);
else
strcpy (de->d_name, buf.cFileName);
- if (dir->__flags && dirent_isroot)
+ if (dir->__flags & dirent_isroot)
{
if (strcasematch (de->d_name, "dev"))
dir->__flags |= dirent_saw_dev;