]> Savannah Git Hosting - gnulib.git/commit
file-has-acl: Fix performance regression on FreeBSD, Cygwin.
authorBruno Haible <bruno@clisp.org>
Mon, 7 Oct 2024 12:30:52 +0000 (14:30 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 7 Oct 2024 12:30:52 +0000 (14:30 +0200)
commitc3fe68e0a802db61d46e4cfd67a04e1476a47407
treed44b37c659f53f32c65e6b3a797bc9af072ff110
parentfda640572909c9416cbfe76c385a4d48281561ca
file-has-acl: Fix performance regression on FreeBSD, Cygwin.

* lib/dirent.in.h (_GL_DT_NOTDIR): New macro.
* lib/acl.h (ACL_SYMLINK_FOLLOW): Increase value.
* lib/file-has-acl.c (file_has_aclinfo): Don't call
acl_get_file (name, ACL_TYPE_DEFAULT) if we know that name does not
denote a directory.
(file_has_acl): Extract from *SB the information that NAME is not a
directory.
ChangeLog
lib/acl.h
lib/dirent.in.h
lib/file-has-acl.c