summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-05-15 08:40:27 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2023-05-15 08:41:34 -0700
commit735716931755c74f3788ac83fead717c0bb22dfe (patch)
treef47d49dbecac525129bc876193e0e7c66c58c9dd /modules
parent29f9d848e5787ac488463fd85161359542ac00c3 (diff)
downloadgnulib-735716931755c74f3788ac83fead717c0bb22dfe.tar.gz
file-has-acl: improve port to Fedora 39
Problem reported by Ondrej Valousek in: https://lists.gnu.org/r/bug-gnulib/2023-05/msg00078.html * lib/file-has-acl.c: Include minmax.h. [USE_ACL && HAVE_LINUX_XATTR_H && HAVE_LISTXATTR]: Include stdckdint.h. (file_has_acl) [USE_ACL && HAVE_LINUX_XATTR_H && HAVE_LISTXATTR]: If the file has NFSv4 ACLs, ignore any POSIX ACLs, for Fedora 39. Return a bit faster when listxattr returns 0. Don’t loop forever if an attacker is fiddling with ACLs. * modules/file-has-acl (Depends-on): Add minmax, stdckdint.
Diffstat (limited to 'modules')
-rw-r--r--modules/file-has-acl2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/file-has-acl b/modules/file-has-acl
index be1048dfe1..199fccd6ca 100644
--- a/modules/file-has-acl
+++ b/modules/file-has-acl
@@ -9,9 +9,11 @@ m4/acl.m4
Depends-on:
acl-permissions
extern-inline
+minmax
free-posix
stat
stdbool
+stdckdint
configure.ac:
gl_FILE_HAS_ACL