10 echo "ERROR: File listing/stat failed"
15 if test "${perms}" != $(echo ${r} | awk '{print $1}') && \
16 test "${perms}." != $(echo ${r} | awk '{print $1}') && \
17 test "${perms}+" != $(echo ${r} | awk '{print $1}'); then
18 echo "ERROR: Permissions should be ${perms}"
27 echo "ERROR: Failed to create file ${file}"
33 echo "ERROR: Failed to change mode of ${file}"
37 check_perms ${file} "-r--------"
42 echo "ERROR: Write to read-only file should Fail"
50 echo "ERROR: Write to writeable file failed"
54 check_perms ${file} "-rw-------"
58 echo "ERROR: Failed to write to file"