aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2020-05-23 07:50:30 -0700
committerGlenn Morris2020-05-23 07:50:30 -0700
commitd436e4840a2a99e9717497a7d7dc7a36dbd0ecc9 (patch)
treefe07bdba2e6249b757d4140d737e204a372a0125 /src
parent294495de8e93c094aa25df55905dac61975643b9 (diff)
parentd6a0b66a0cf44389c7474a60dd23cbf666e78537 (diff)
downloademacs-d436e4840a2a99e9717497a7d7dc7a36dbd0ecc9.tar.gz
emacs-d436e4840a2a99e9717497a7d7dc7a36dbd0ecc9.zip
Merge from origin/emacs-27
d6a0b66a0c (origin/emacs-27) * lisp/subr.el (save-match-data): Clarif... 1a6d59eeba Improve the documentation of setting up fontsets c7737d40f2 ; * etc/TODO (Ligatures): Update the entry based on recent... fb2e34cd21 ; * etc/TODO (Ligatures): Update the entry based on recent... 13b6dfd4f7 * doc/emacs/killing.texi (Rectangles): Improve indexing. a10254dd46 Fix accessing files on networked drives on MS-Windows
Diffstat (limited to 'src')
-rw-r--r--src/w32.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/w32.c b/src/w32.c
index 0f69e652a57..f391f5e26eb 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -6519,7 +6519,15 @@ acl_get_file (const char *fname, acl_type_t type)
6519 if (!get_file_security (fname, si, psd, sd_len, &sd_len)) 6519 if (!get_file_security (fname, si, psd, sd_len, &sd_len))
6520 { 6520 {
6521 xfree (psd); 6521 xfree (psd);
6522 errno = EIO; 6522 err = GetLastError ();
6523 if (err == ERROR_NOT_SUPPORTED)
6524 errno = ENOTSUP;
6525 else if (err == ERROR_FILE_NOT_FOUND
6526 || err == ERROR_PATH_NOT_FOUND
6527 || err == ERROR_INVALID_NAME)
6528 errno = ENOENT;
6529 else
6530 errno = EIO;
6523 psd = NULL; 6531 psd = NULL;
6524 } 6532 }
6525 } 6533 }
@@ -6530,6 +6538,8 @@ acl_get_file (const char *fname, acl_type_t type)
6530 be encoded in the current ANSI codepage. */ 6538 be encoded in the current ANSI codepage. */
6531 || err == ERROR_INVALID_NAME) 6539 || err == ERROR_INVALID_NAME)
6532 errno = ENOENT; 6540 errno = ENOENT;
6541 else if (err == ERROR_NOT_SUPPORTED)
6542 errno = ENOTSUP;
6533 else 6543 else
6534 errno = EIO; 6544 errno = EIO;
6535 } 6545 }