* fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix test for

dirent_isroot to use the correct boolean operator.
This commit is contained in:
Christopher Faylor 2006-01-26 02:54:54 +00:00
parent c40776e5a2
commit 4207eed323
2 changed files with 6 additions and 1 deletions

View 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.

View 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;