From 6a1a87f49cda307da8efb854030b520e8c7995ba Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 2 Oct 2019 19:42:43 +0300 Subject: [PATCH] Fix MS-Windows error when a directory on PATH doesn't exist * src/w32.c (faccessat): Support more MS-Windows native error codes that should be translated to ENOENT. (Bug#37576) --- src/w32.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/w32.c b/src/w32.c index 88e9aef338f..55e471f14c2 100644 --- a/src/w32.c +++ b/src/w32.c @@ -4062,7 +4062,11 @@ faccessat (int dirfd, const char * path, int mode, int flags) /* FALLTHROUGH */ FALLTHROUGH; case ERROR_FILE_NOT_FOUND: + case ERROR_PATH_NOT_FOUND: + case ERROR_INVALID_DRIVE: + case ERROR_NOT_READY: case ERROR_BAD_NETPATH: + case ERROR_BAD_NET_NAME: errno = ENOENT; break; default: -- 2.39.2