emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8ad41af: Port file-acl errno checking to non-GNU


From: Paul Eggert
Subject: [Emacs-diffs] master 8ad41af: Port file-acl errno checking to non-GNU
Date: Sun, 6 Oct 2019 12:54:30 -0400 (EDT)

branch: master
commit 8ad41af3a1a651e11c270b9bccc838aed5d0e0e7
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    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.
---
 src/fileio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fileio.c b/src/fileio.c
index 45186d6..781a71b 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -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);
     }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]