Blame tests/p_acl/acl_set_get_test.sh

Athmane Madjoudj 41dd6f
#!/bin/sh
Athmane Madjoudj 41dd6f
# Author:  Dan Trainor <dan.trainor@gmail.com>
Athmane Madjoudj 41dd6f
#          Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 41dd6f
Athmane Madjoudj 41dd6f
t_Log "Running $0 - Check that we can get and set acl"
Athmane Madjoudj 41dd6f
Athmane Madjoudj 41dd6f
touch /tmp/acl_test_file
Athmane Madjoudj 41dd6f
Athmane Madjoudj 41dd6f
setfacl -m user:nobody:r-- /tmp/acl_test_file
Athmane Madjoudj 41dd6f
getfacl -a /tmp/acl_test_file |grep -q 'user:nobody:r--' 
Athmane Madjoudj 41dd6f
Athmane Madjoudj 41dd6f
t_CheckExitStatus $?
Athmane Madjoudj 41dd6f
Athmane Madjoudj 41dd6f
/bin/rm -f /tmp/acl_test_file