diff options
| author | Andrea Corallo | 2020-05-24 10:20:23 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-05-24 10:20:23 +0100 |
| commit | 9daffe9cfe82d3b1e1e9fa8929dbb40cfed60f0f (patch) | |
| tree | c9e78cbb4e151dc3c3996a65cf1eedab19248fb4 /src/w32.c | |
| parent | f5dceed09a8234548d5b3acb76d443569533cab9 (diff) | |
| parent | e021c2dc2279e0fd3a5331f9ea661e4d39c2e840 (diff) | |
| download | emacs-9daffe9cfe82d3b1e1e9fa8929dbb40cfed60f0f.tar.gz emacs-9daffe9cfe82d3b1e1e9fa8929dbb40cfed60f0f.zip | |
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'src/w32.c')
| -rw-r--r-- | src/w32.c | 12 |
1 files changed, 11 insertions, 1 deletions
| @@ -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 | } |