+2025-03-31 Bruno Haible <bruno@clisp.org>
+
+ acl, file-has-acl tests: Strengthen tests on Cygwin.
+ Suggested by Corinna Vinschen in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2025-03/msg00126.html>.
+ * tests/test-set-mode-acl.sh: On Cygwin, use group 1 instead of the
+ non-existent group 0.
+ * tests/test-copy-acl.sh: Likewise.
+ * tests/test-file-has-acl.sh: Likewise.
+
2025-03-30 Bruno Haible <bruno@clisp.org>
file-has-acl: Update comments regarding Cygwin.
cygwin)
# Set an ACL for a group.
- setfacl -m group:0:1 tmpfile0
+ # Group 1 in Cygwin corresponds to the DIALUP users (cf.
+ # <https://learn.microsoft.com/en-us/windows/win32/secauthz/well-known-sids>).
+ setfacl -m group:1:1 tmpfile0
func_test_copy tmpfile0 tmpfile2
func_test_copy tmpfile0 tmpfile4
# Remove the ACL for the group.
- setfacl -d group:0 tmpfile0
+ setfacl -d group:1 tmpfile0
func_test_copy tmpfile0 tmpfile5
cygwin)
# Set an ACL for a group.
- if setfacl -m group:0:1 tmpfile0; then
+ # Group 1 in Cygwin corresponds to the DIALUP users (cf.
+ # <https://learn.microsoft.com/en-us/windows/win32/secauthz/well-known-sids>).
+ if setfacl -m group:1:1 tmpfile0; then
func_test_has_acl tmpfile0 yes
# Remove the ACL for the group.
- setfacl -d group:0 tmpfile0
+ setfacl -d group:1 tmpfile0
func_test_has_acl tmpfile0 no
setfacl -m user:$auid:1 tmpfile0
;;
cygwin)
- setfacl -m group:0:1 tmpfile0
+ # Group 1 in Cygwin corresponds to the DIALUP users (cf.
+ # <https://learn.microsoft.com/en-us/windows/win32/secauthz/well-known-sids>).
+ setfacl -m group:1:1 tmpfile0
;;
hpux)
orig=`lsacl tmpfile0 | sed -e 's/ tmpfile0$//'`