aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32.c
diff options
context:
space:
mode:
authorEli Zaretskii2019-10-02 19:42:43 +0300
committerEli Zaretskii2019-10-02 19:42:43 +0300
commit6a1a87f49cda307da8efb854030b520e8c7995ba (patch)
treee6c0c04a25f25d3f9ec7d1656dbbaee31724b15a /src/w32.c
parent9cd3b50ca869e6a91668eb8bbc2a44617294b85c (diff)
downloademacs-6a1a87f49cda307da8efb854030b520e8c7995ba.tar.gz
emacs-6a1a87f49cda307da8efb854030b520e8c7995ba.zip
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)
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c4
1 files changed, 4 insertions, 0 deletions
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)
4062 /* FALLTHROUGH */ 4062 /* FALLTHROUGH */
4063 FALLTHROUGH; 4063 FALLTHROUGH;
4064 case ERROR_FILE_NOT_FOUND: 4064 case ERROR_FILE_NOT_FOUND:
4065 case ERROR_PATH_NOT_FOUND:
4066 case ERROR_INVALID_DRIVE:
4067 case ERROR_NOT_READY:
4065 case ERROR_BAD_NETPATH: 4068 case ERROR_BAD_NETPATH:
4069 case ERROR_BAD_NET_NAME:
4066 errno = ENOENT; 4070 errno = ENOENT;
4067 break; 4071 break;
4068 default: 4072 default: