OSDN Git Service

* fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix test for
authorcgf <cgf>
Thu, 26 Jan 2006 02:54:52 +0000 (02:54 +0000)
committercgf <cgf>
Thu, 26 Jan 2006 02:54:52 +0000 (02:54 +0000)
dirent_isroot to use the correct boolean operator.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_disk_file.cc

index 942ca3f..c265cba 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-25  Corinna Vinschen  <corinna@vinschen.de>
+
+       * fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix test for
+       dirent_isroot to use the correct boolean operator.
+
 2006-01-25  Christopher Faylor  <cgf@timesys.com>
 
        * ntdll.h: (temporarily?) Add more functions for querying directory.
index ab27781..b534b7f 100644 (file)
@@ -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;