]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix port of file-acl errno checking to non-GNU
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Oct 2019 06:08:34 +0000 (23:08 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Oct 2019 06:08:56 +0000 (23:08 -0700)
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

index 781a71bcf358b5734ef59d6b8c3903c863d5298f..f1860e8a93072d52773788967c1ba2880aac86dd 100644 (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);
     }