1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

test_sharesec: Fix check for deleted ACL

Remove semicolon; without this change the test could not detect a
failure of removing the ACL.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Christof Schmitt 2016-02-04 16:39:59 -07:00 committed by Jeremy Allison
parent 2272c9723d
commit 66f5d0902d

View File

@ -94,7 +94,7 @@ testit "Query ACL with three entries after removal" $CMD --view || \
COUNT=$($CMD --view | grep ACL: | sed -e 's/^ACL://' | wc -l) COUNT=$($CMD --view | grep ACL: | sed -e 's/^ACL://' | wc -l)
testit "Verify ACL count after removal" test $COUNT -eq 3 || \ testit "Verify ACL count after removal" test $COUNT -eq 3 || \
failed=$(expr $failed + 1) failed=$(expr $failed + 1)
ACL="$($CMD --view | grep S-1-5-32-546')" ACL="$($CMD --view | grep S-1-5-32-546)"
testit "Verify removal" test -e "$ACL" || failed=$(expr $failed + 1) testit "Verify removal" test -e "$ACL" || failed=$(expr $failed + 1)
testit "Set ACL as hex value" $CMD --add S-1-5-32-547:0x1/0x0/0x001F01FF || \ testit "Set ACL as hex value" $CMD --add S-1-5-32-547:0x1/0x0/0x001F01FF || \