From: Paul Eggert Date: Mon, 7 Oct 2019 06:08:34 +0000 (-0700) Subject: Fix port of file-acl errno checking to non-GNU X-Git-Tag: emacs-27.0.90~1238 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f2346b5788338dbceabc30233234e4a3308f32c2;p=emacs.git 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. --- diff --git a/src/fileio.c b/src/fileio.c index 781a71bcf35..f1860e8a930 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); }