summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2002-03-11 23:42:35 +0000
committerNathan Scott <nathans@sgi.com>2002-03-11 23:42:35 +0000
commit910537f4f43ff221d86b8f68879c5bad6f7ad62d (patch)
tree1990114edc63b06348716b20fa64046d97bdf927 /test
parentd274705be1952dffae434ca656f027383fc233c6 (diff)
downloadacl-910537f4f43ff221d86b8f68879c5bad6f7ad62d.tar.gz
man page and test script updates from Andreas.
Diffstat (limited to 'test')
-rw-r--r--test/setfacl.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/setfacl.test b/test/setfacl.test
index 94b157d..46b9d51 100644
--- a/test/setfacl.test
+++ b/test/setfacl.test
@@ -108,3 +108,16 @@ setfacl: g: Resulting ACL `user::rwx,user:root:---,user:joe:rw-,group::r-x,other
!setfacl --test -m d:u:joe:rwx setfacl
!setfacl --test -n -m d:u:joe:rwx setfacl
$ rm g
+!
+! Check if the mask is properly recalculated
+!
+$ mkdir d
+$ setfacl --test -m u::rwx,u:@OWNER@:rwx,g::r-x,o::--- d
+d: u::rwx,u:ag:rwx,g::r-x,m::rwx,o::---,*
+$ setfacl --test -m u::rwx,u:@OWNER@:rwx,g::r-x,m::---,o::--- d
+d: u::rwx,u:ag:rwx,g::r-x,m::---,o::---,*
+$ setfacl --test -d -m u::rwx,u:@OWNER@:rwx,g::r-x,o::--- d
+d: *,d:u::rwx,d:u:ag:rwx,d:g::r-x,d:m::rwx,d:o::---
+$ setfacl --test -d -m u::rwx,u:@OWNER@:rwx,g::r-x,m::---,o::--- d
+d: *,d:u::rwx,d:u:ag:rwx,d:g::r-x,d:m::---,d:o::---
+$ rmdir d