emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master f2346b5: Fix port of file-acl errno checking to non


From: Paul Eggert
Subject: [Emacs-diffs] master f2346b5: Fix port of file-acl errno checking to non-GNU
Date: Mon, 7 Oct 2019 02:09:02 -0400 (EDT)

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

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

diff --git a/src/fileio.c b/src/fileio.c
index 781a71b..f1860e8 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 || acl_errno_valid (errno))
+      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]