Fix up filtering to make deterministic.

Needed when changed chacl to give better error msg.
This commit is contained in:
Tim Shimmin
2001-05-01 01:01:05 +00:00
parent 801ffb1a20
commit 9efce32a3d
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -186,7 +186,7 @@ echo "=== Test Extended ACLs ==="
echo ""
echo "--- Test adding a USER ACE ---"
echo "Expect to FAIL as no MASK provided"
chacl u::---,g::---,o::---,u:$acl2:r-x file1 2>&1
chacl u::---,g::---,o::---,u:$acl2:r-x file1 2>&1 | _acl_filter_id
echo "Ensure that ACL has not been changed"
chacl -l file1 | _acl_filter_id
echo "Expect to PASS - USER ACE matches user"
@@ -199,7 +199,7 @@ $runas -u $acl3 -g $acl3 ./file1 2>&1
echo ""
echo "--- Test adding a GROUP ACE ---"
echo "Expect to FAIL as no MASK provided"
chacl u::---,g::---,o::---,g:$acl2:r-x file1 2>&1
chacl u::---,g::---,o::---,g:$acl2:r-x file1 2>&1 | _acl_filter_id
echo "Ensure that ACL has not been changed"
chacl -l file1 | _acl_filter_id
chacl u::---,g::---,o::---,g:$acl2:r-x,m::rwx file1 2>&1
+2 -2
View File
@@ -49,7 +49,7 @@ Test was executed
--- Test adding a USER ACE ---
Expect to FAIL as no MASK provided
chacl: "u::---,g::---,o::---,u:17:r-x" is an invalid ACL specification.
chacl: "u::---,g::---,o::---,u:id2:r-x" is an invalid ACL specification.
Ensure that ACL has not been changed
file1 [u::---,g::---,o::r-x]
Expect to PASS - USER ACE matches user
@@ -60,7 +60,7 @@ Expect to FAIL - USER ACE does not match user
--- Test adding a GROUP ACE ---
Expect to FAIL as no MASK provided
chacl: "u::---,g::---,o::---,g:17:r-x" is an invalid ACL specification.
chacl: "u::---,g::---,o::---,g:id2:r-x" is an invalid ACL specification.
Ensure that ACL has not been changed
file1 [u::---,g::---,o::---,u:id2:r-x,m::rwx]
file1 [u::---,g::---,o::---,g:id2:r-x,m::rwx]