* 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 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.
# endif
}
else
- ret = -1;
+ {
+# ifdef __CYGWIN__ /* Cygwin >= 2.5 */
+ if (d_type == DT_UNKNOWN)
+ ret = 0;
+ else
+# endif
+ ret = -1;
+ }
}
# endif
}