mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Fix up 057 to test the prior bug in acl_get_fd, acl_get_file.
This commit is contained in:
@@ -42,6 +42,7 @@ owner=tes@sherman.melbourne.sgi.com
|
||||
# get standard environment, filters and checks
|
||||
. ./common.rc
|
||||
. ./common.filter
|
||||
. ./common.attr
|
||||
|
||||
seq=`basename $0`
|
||||
echo "QA output created by $seq"
|
||||
@@ -102,6 +103,7 @@ rm -f $seq.full
|
||||
_need_to_be_root
|
||||
|
||||
[ -x $acl_get ] || _notrun "$acl_get command not found"
|
||||
[ -x /bin/chacl ] || _notrun "chacl command not found"
|
||||
|
||||
# get dir
|
||||
cd $TEST_DIR
|
||||
@@ -115,7 +117,11 @@ touch file1
|
||||
chmod 752 file1
|
||||
_get_file file1
|
||||
|
||||
|
||||
# ensure that full blown acls' get/set work, not just minimal ones
|
||||
_acl_setup_ids
|
||||
chacl u::rwx,g::rw-,o::---,u:$acl1:r-x,g:$acl1:r--,m::rwx file1 2>&1
|
||||
chacl -l file1 | _acl_filter_id
|
||||
_get_file file1 | _acl_filter_id
|
||||
|
||||
# success, all done
|
||||
status=0
|
||||
|
||||
Reference in New Issue
Block a user