Code

t/t1304: set the ACL effective rights mask
authorBrandon Casey <drafnel@gmail.com>
Mon, 15 Mar 2010 18:35:03 +0000 (13:35 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Mar 2010 02:05:59 +0000 (19:05 -0700)
Some implementations of setfacl do not recalculate the effective rights
mask when the ACL is modified.  So, set the effective rights mask
explicitly to ensure that the ACL's that are set on the directories will
have effect.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1304-default-acl.sh

index 52246d7393dddeba36cae8aa80d58505af306469..85351aea249bf0cca160355ace327e352b9852d4 100755 (executable)
@@ -33,6 +33,7 @@ dirs_to_set="./ .git/ .git/objects/ .git/objects/pack/"
 
 test_expect_success 'Setup test repo' '
        setfacl -m d:u::rwx,d:g::---,d:o:---,d:m:rwx $dirs_to_set &&
+       setfacl -m m:rwx               $dirs_to_set &&
        setfacl -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 &&