X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-set-mode-acl.sh;h=4e58e0be8085588832dcf0e6de156690d8ab7e98;hb=7bf5395a54d50724481ea61a5e9ef51144e28ace;hp=ef468d9f3cbe4d7b505290f245bea5890163b332;hpb=456355401219fdc2cb203baedd2bf176572e8310;p=gnulib.git diff --git a/tests/test-set-mode-acl.sh b/tests/test-set-mode-acl.sh index ef468d9f3..4e58e0be8 100755 --- a/tests/test-set-mode-acl.sh +++ b/tests/test-set-mode-acl.sh @@ -148,11 +148,14 @@ cd "$builddir" || # Prepare a file with an ACL. echo "Special contents" > tmpfile2 chmod 600 tmpfile2 - # Set an ACL for a user. + # Set an ACL for a user (or group). case $acl_flavor in - linux | cygwin | freebsd | solaris) + linux | freebsd | solaris) setfacl -m user:$auid:1 tmpfile0 ;; + cygwin) + setfacl -m group:0:1 tmpfile0 + ;; hpux) orig=`lsacl tmpfile0 | sed -e 's/ tmpfile0$//'` chacl -r "${orig}($auid.%,--x)" tmpfile0