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.
This commit is contained in:
parent
78ac0551e7
commit
f2346b5788
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue