@matheusbsbs / matheus-bagliano / commits / db826571e4
Fork 0

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 <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Brandon Casey committed Mar 15, 2010 at 12:14 UTC db826571e4099066fe44233d95642591016c831b
1 file changed +2 -2
t/t1304-default-acl.sh
+2 -2
@@ -46,8 +46,8 @@ dirs_to_set="./ .git/ .git/objects/ .git/objects/pack/"
46
47 test_expect_success 'Setup test repo' '
48 setfacl -m u:root:rwx $dirs_to_set &&
49 - setfacl -d -m u:"$LOGNAME":rwx $dirs_to_set &&
50 - setfacl -d -m u:root:rwx $dirs_to_set &&
49 + setfacl -m d:u:"$LOGNAME":rwx $dirs_to_set &&
50 + setfacl -m d:u:root:rwx $dirs_to_set &&
51
52 touch file.txt &&
53 git add file.txt &&