* fhandler_disk_file.cc (fhandler_cygdrive::readdir): Do not change 'errno' if

end of directory condition is encountered as per SUSv2.
* fhandler_proc.cc (fhandler_proc::readdir): Ditto.
* fhandler_process (fhandler_process::readdir): Ditto.
* fhandler_registry (fhandler_registry::readdir): Ditto.
This commit is contained in:
Christopher Faylor
2003-08-05 03:04:28 +00:00
parent 2f631ebc94
commit 3fea2e4087
5 changed files with 12 additions and 10 deletions

View File

@ -769,10 +769,7 @@ fhandler_cygdrive::readdir (DIR *dir)
if (!iscygdrive_root ())
return fhandler_disk_file::readdir (dir);
if (!pdrive || !*pdrive)
{
set_errno (ENMFILE);
return NULL;
}
return NULL;
else if (dir->__d_position > 1
&& GetFileAttributes (pdrive) == INVALID_FILE_ATTRIBUTES)
{