+2025-03-30 Bruno Haible <bruno@clisp.org>
+
+ file-has-acl: Update comments regarding Cygwin.
+ * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE, acl_extended_file): Add
+ more comments.
+
2025-03-29 Bruno Haible <bruno@clisp.org>
acl-permissions: Update comments regarding NetBSD.
# endif
/* Linux-specific */
-/* Cygwin >= 2.5 implements this function, but it returns 1 for all
- directories, thus is unusable. */
+/* Cygwin >= 2.5 implements acl_extended_file(), but it returns 1 for nearly all
+ directories — for reasons explained in
+ <https://sourceware.org/pipermail/cygwin/2025-March/257762.html> —, thus is
+ unusable. For the user, 'ls' should not print a '+' sign, indicating the
+ presence of an ACL, for 99,9% of the files; this would not be useful.
+ Therefore, on Cygwin, we ignore the acl_extended_file function and instead
+ use our own acl_access_nontrivial function. */
# if !defined HAVE_ACL_EXTENDED_FILE || defined __CYGWIN__
# undef HAVE_ACL_EXTENDED_FILE
# define HAVE_ACL_EXTENDED_FILE false