mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-22 18:35:09 +00:00
Port file-acl errno checking to non-GNU
Problem reported privately for FreeBSD 12 by Ashish Shukla. * src/fileio.c (Ffile_acl): Treat EINVAL etc. like ENOTSUP if acl_get_file fails, to port to FreeBSD 12 and other non-GNU platforms.
This commit is contained in:
parent
9d829b8be5
commit
8ad41af3a1
@ -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 || errno == ENOTSUP)
|
||||
if (errno == ENOENT || errno == ENOTDIR || acl_errno_valid (errno))
|
||||
return Qnil;
|
||||
report_file_error ("Getting ACLs", absname);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user