* 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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user