]> code.delx.au - gnu-emacs/commit
Improve the fix for bug #19701
authorEli Zaretskii <eliz@gnu.org>
Wed, 28 Jan 2015 17:42:28 +0000 (19:42 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 28 Jan 2015 17:42:28 +0000 (19:42 +0200)
commitad588afdaa166bcdacbf9f746bd4d39b2c649768
treec3562982b7a711957cc43a87163e8ca791aa9dab
parentba10f4b56081d0f5069720c9ce0871e819b904f5
Improve the fix for bug #19701

 src/dired.c (directory_files_internal, file_name_completion)
 [WINDOWSNT]: Signal an error when errno is set non-zero by
 'readdir', regardless of its value.
 src/w32.c (sys_readdir): Set errno to ENOENT when the directory
 doesn't exist and to EACCES when it's not accessible to the
 current user.  Set errno to zero when FindNextFile exhausts the
 directory, so that callers don't interpret that as an error and
 don't signal a file-error.
 (open_unc_volume): Set errno to ENOENT if WNetOpenEnum fails.
src/ChangeLog
src/dired.c
src/w32.c