# put a file in the directory
echo data > subdir/file
-ls -l subdir/file | awk '{ print $1, $3 }'
+_ls_l subdir/file | awk '{ print $1, $3 }'
# add an ACL with a user ACE which has no exec permission
if [ "$HOSTOS" == "Linux" ]; then
# With the bug this gives: `ls: subdir/file: Permission denied'
# because one needs at least an exec perm somewhere in acl
# However, this should not hold true for directories.
-ls -l subdir/file | awk '{ print $1, $3 }'
+_ls_l subdir/file | awk '{ print $1, $3 }'
# With the bug this gives: `subdir/file2: Permission denied'.
echo data2 > subdir/file2
#
_acl_ls()
{
- ls -ln $* | awk '{ print $1, $3, $4, $NF }' | _acl_filter_id
+ _ls_l -n $* | awk '{ print $1, $3, $4, $NF }' | _acl_filter_id
}
#
fi
}
+# ls -l w/ selinux sometimes puts a dot at the end:
+# -rwxrw-r--. id1 id2 file1
+
+_ls_l()
+{
+ ls -l $* | sed "s/\(^[-rwxdlbcpsStT]*\)\. /\1 /"
+}
+
_mount_opts()
{
case $FSTYP in