File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -14,16 +14,15 @@ umask 077
14
14
# We need an arbitrary other user give permission to using ACLs. root
15
15
# is a good candidate: exists on all unices, and it has permission
16
16
# anyway, so we don't create a security hole running the testsuite.
17
-
18
- setfacl_out=" $( setfacl -m u:root:rwx . 2>&1 ) "
19
- setfacl_ret=$?
20
-
21
- if test $setfacl_ret ! = 0
22
- then
23
- say " Unable to use setfacl (output: '$setfacl_out '; return code: '$setfacl_ret ')"
24
- else
25
- test_set_prereq SETFACL
26
- fi
17
+ test_expect_success ' checking for a working acl setup' '
18
+ if setfacl -m d:m:rwx -m u:root:rwx . &&
19
+ getfacl . | grep user:root:rwx &&
20
+ touch should-have-readable-acl &&
21
+ getfacl should-have-readable-acl | egrep "mask::?rw-"
22
+ then
23
+ test_set_prereq SETFACL
24
+ fi
25
+ '
27
26
28
27
if test -z " $LOGNAME "
29
28
then
You can’t perform that action at this time.
0 commit comments