]> Savannah Git Hosting - gnulib.git/commit
file-has-acl: improve port to Fedora 39
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 May 2023 15:40:27 +0000 (08:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 May 2023 15:41:34 +0000 (08:41 -0700)
commit735716931755c74f3788ac83fead717c0bb22dfe
treef47d49dbecac525129bc876193e0e7c66c58c9dd
parent29f9d848e5787ac488463fd85161359542ac00c3
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.
ChangeLog
lib/file-has-acl.c
modules/file-has-acl