From: Brandon Casey Date: Mon, 15 Mar 2010 17:14:33 +0000 (-0500) Subject: t/t1304: avoid -d option to setfacl X-Git-Tag: v1.7.1-rc0~23^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=db826571e4099066fe44233d95642591016c831b;p=git.git t/t1304: avoid -d option to setfacl Some platforms (Solaris) have a setfacl whose -d switch works differently than the one on Linux. On Linux, it causes all operations to be applied to the Default ACL. There is a notation for operating on the Default ACL: [d[efault]:] [u[ser]:]uid [:perms] so use it instead of the -d switch. Signed-off-by: Brandon Casey Signed-off-by: Junio C Hamano --- diff --git a/t/t1304-default-acl.sh b/t/t1304-default-acl.sh index cc30be4a6..415a2dd3c 100755 --- a/t/t1304-default-acl.sh +++ b/t/t1304-default-acl.sh @@ -46,8 +46,8 @@ dirs_to_set="./ .git/ .git/objects/ .git/objects/pack/" test_expect_success 'Setup test repo' ' setfacl -m u:root:rwx $dirs_to_set && - setfacl -d -m u:"$LOGNAME":rwx $dirs_to_set && - setfacl -d -m u:root:rwx $dirs_to_set && + setfacl -m d:u:"$LOGNAME":rwx $dirs_to_set && + setfacl -m d:u:root:rwx $dirs_to_set && touch file.txt && git add file.txt &&