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:
Paul Eggert 2019-10-06 23:08:34 -07:00
parent 78ac0551e7
commit f2346b5788

View file

@ -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);
}