From 989fb32064c890dd6df4aa77da5394e655af6f51 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 29 Jan 2015 20:43:08 +0200 Subject: [PATCH] Improve solution of bug #19701 src/w32.c (sys_readdir): Map ERROR_NOT_READY (as in "device not ready") to ENOENT. --- src/ChangeLog | 5 +++++ src/w32.c | 1 + 2 files changed, 6 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index dc495089739..08779405acb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2015-01-29 Eli Zaretskii + + * w32.c (sys_readdir): Map ERROR_NOT_READY (as in "device not + ready") to ENOENT. + 2015-01-28 Eli Zaretskii * dired.c (directory_files_internal, file_name_completion) diff --git a/src/w32.c b/src/w32.c index 2faa742f9d7..f8284f3e4cc 100644 --- a/src/w32.c +++ b/src/w32.c @@ -3454,6 +3454,7 @@ sys_readdir (DIR *dirp) break; case ERROR_PATH_NOT_FOUND: case ERROR_INVALID_DRIVE: + case ERROR_NOT_READY: case ERROR_BAD_NETPATH: case ERROR_BAD_NET_NAME: errno = ENOENT; -- 2.39.2