diff options
| author | Paul Eggert | 2019-10-06 23:08:34 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-10-06 23:08:56 -0700 |
| commit | f2346b5788338dbceabc30233234e4a3308f32c2 (patch) | |
| tree | daf42e6a4746192734acc63ab76b7a81074159a3 /src | |
| parent | 78ac0551e77110cfdc9b01fadec19d862b5957c4 (diff) | |
| download | emacs-f2346b5788338dbceabc30233234e4a3308f32c2.tar.gz emacs-f2346b5788338dbceabc30233234e4a3308f32c2.zip | |
Fix port of file-acl errno checking to non-GNU
I had misinterpreted the private email from Ashish Shukla.
* src/fileio.c (Ffile_acl): Fix typo in previous change
by negating the call to acl_errno_valid.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 781a71bcf35..f1860e8a930 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -3248,7 +3248,7 @@ Return nil if file does not exist. */) | |||
| 3248 | acl_t acl = acl_get_file (SSDATA (ENCODE_FILE (absname)), ACL_TYPE_EXTENDED); | 3248 | acl_t acl = acl_get_file (SSDATA (ENCODE_FILE (absname)), ACL_TYPE_EXTENDED); |
| 3249 | if (acl == NULL) | 3249 | if (acl == NULL) |
| 3250 | { | 3250 | { |
| 3251 | if (errno == ENOENT || errno == ENOTDIR || acl_errno_valid (errno)) | 3251 | if (errno == ENOENT || errno == ENOTDIR || !acl_errno_valid (errno)) |
| 3252 | return Qnil; | 3252 | return Qnil; |
| 3253 | report_file_error ("Getting ACLs", absname); | 3253 | report_file_error ("Getting ACLs", absname); |
| 3254 | } | 3254 | } |