From ef15cbdb8b32b15b60a116575023613540fd21be Mon Sep 17 00:00:00 2001 From: Tim Shimmin Date: Tue, 17 Apr 2001 05:16:51 +0000 Subject: [PATCH] Test default ACLs with particular umasks instead of relying on a default umask. Updated for pv#820248. --- 051 | 15 ++++++++++++++- 051.out | 2 ++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/051 b/051 index 1ca4c101..ab3024d0 100755 --- a/051 +++ b/051 @@ -259,15 +259,28 @@ chacl -l file1 | _acl_filter_id echo "" echo "=== Test Default ACLs ===" +# make test clearer by testing with and without umask +umask 0 + mkdir acldir chacl -b "u::rwx,g::rwx,o::rwx" "u::r-x,g::r--,o::---" acldir 2>&1 chacl -l acldir | _acl_filter_id - cd acldir + touch file2 _acl_ls file2 chacl -l file2 | _acl_filter_id + +#ensure that umask is not having an effect +#so set it and see +umask 722 +touch file3 +_acl_ls file3 +chacl -l file3 | _acl_filter_id + cd .. +umask 022 + #------------------------------------------------------- diff --git a/051.out b/051.out index da298573..38113538 100644 --- a/051.out +++ b/051.out @@ -93,6 +93,8 @@ file1 [o::---,g::---,u::---] acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---] -r--r----- 0 0 file2 file2 [u::r--,g::r--,o::---] +-r--r----- 0 0 file3 +file3 [u::r--,g::r--,o::---] === Removing ACLs === file1 [o::---,g::---,u::---] -- 2.30.2