mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-09-01 02:34:55 +00:00
file-has-acl: Fix test failure on Cygwin.
* lib/file-has-acl.c (file_has_aclinfo): On Cygwin, don't fail if acl_get_file (name, ACL_TYPE_DEFAULT) returns NULL on a file of unknown type.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2024-10-07 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
file-has-acl: Fix test failure on Cygwin.
|
||||
* lib/file-has-acl.c (file_has_aclinfo): On Cygwin, don't fail if
|
||||
acl_get_file (name, ACL_TYPE_DEFAULT) returns NULL on a file of unknown
|
||||
type.
|
||||
|
||||
2024-10-07 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
file-has-acl: Fix performance regression on FreeBSD, Cygwin.
|
||||
|
||||
+8
-1
@@ -483,7 +483,14 @@ file_has_aclinfo (MAYBE_UNUSED char const *restrict name,
|
||||
# endif
|
||||
}
|
||||
else
|
||||
ret = -1;
|
||||
{
|
||||
# ifdef __CYGWIN__ /* Cygwin >= 2.5 */
|
||||
if (d_type == DT_UNKNOWN)
|
||||
ret = 0;
|
||||
else
|
||||
# endif
|
||||
ret = -1;
|
||||
}
|
||||
}
|
||||
# endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user