Commit f2346b57 authored by Paul Eggert's avatar Paul Eggert

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.
parent 78ac0551
Pipeline #3488 failed with stage
in 67 minutes and 2 seconds
......@@ -3248,7 +3248,7 @@ Return nil if file does not exist. */)
acl_t acl = acl_get_file (SSDATA (ENCODE_FILE (absname)), ACL_TYPE_EXTENDED);
if (acl == NULL)
if (errno == ENOENT || errno == ENOTDIR || acl_errno_valid (errno))
if (errno == ENOENT || errno == ENOTDIR || !acl_errno_valid (errno))
return Qnil;
report_file_error ("Getting ACLs", absname);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment