aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32.c
diff options
context:
space:
mode:
authorAndrea Corallo2020-10-04 19:45:05 +0200
committerAndrea Corallo2020-10-04 19:45:05 +0200
commit44ef24342fd8a2ac876212124ebf38673acda35a (patch)
tree793dc4ba4197559b4bc65339d713c0807a7b2ca9 /src/w32.c
parentafb765ab3cab7b6582d0def543b23603cd076445 (diff)
parentd8665e6d3473403c90a0831e83439a013d0012d3 (diff)
downloademacs-44ef24342fd8a2ac876212124ebf38673acda35a.tar.gz
emacs-44ef24342fd8a2ac876212124ebf38673acda35a.zip
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/w32.c b/src/w32.c
index 38bbc496563..d4a8d2e6ffb 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -6520,7 +6520,8 @@ acl_get_file (const char *fname, acl_type_t type)
6520 { 6520 {
6521 xfree (psd); 6521 xfree (psd);
6522 err = GetLastError (); 6522 err = GetLastError ();
6523 if (err == ERROR_NOT_SUPPORTED) 6523 if (err == ERROR_NOT_SUPPORTED
6524 || err == ERROR_ACCESS_DENIED)
6524 errno = ENOTSUP; 6525 errno = ENOTSUP;
6525 else if (err == ERROR_FILE_NOT_FOUND 6526 else if (err == ERROR_FILE_NOT_FOUND
6526 || err == ERROR_PATH_NOT_FOUND 6527 || err == ERROR_PATH_NOT_FOUND
@@ -6538,7 +6539,11 @@ acl_get_file (const char *fname, acl_type_t type)
6538 be encoded in the current ANSI codepage. */ 6539 be encoded in the current ANSI codepage. */
6539 || err == ERROR_INVALID_NAME) 6540 || err == ERROR_INVALID_NAME)
6540 errno = ENOENT; 6541 errno = ENOENT;
6541 else if (err == ERROR_NOT_SUPPORTED) 6542 else if (err == ERROR_NOT_SUPPORTED
6543 /* ERROR_ACCESS_DENIED is what we get for a volume
6544 mounted by WebDAV, which evidently doesn't
6545 support ACLs. */
6546 || err == ERROR_ACCESS_DENIED)
6542 errno = ENOTSUP; 6547 errno = ENOTSUP;
6543 else 6548 else
6544 errno = EIO; 6549 errno = EIO;