1
0
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:
Bruno Haible
2024-10-07 14:59:00 +02:00
parent c3fe68e0a8
commit 6e398bee5a
2 changed files with 15 additions and 1 deletions
+7
View File
@@ -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
View File
@@ -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
}