Fix create-base-directories.fish with SELinux

(cherry picked from commit f224ff1d28)
This commit is contained in:
Laurențiu Nicola
2025-02-26 21:50:04 +02:00
committed by David Adam
parent 6d30751f1c
commit 1c57144f8b

View File

@@ -10,8 +10,8 @@ $fish -c ''
# Check that existing directories kept their permissions, and new directories
# have the right permissions according to the XDG Base Directory Specification.
# Use command ls to turn off indicators in case of xattrs or similar.
command ls -ld $dir/old $dir/old/new $dir/old/new/fish | awk '{print $1}'
# Use command ls and awk to strip off xattr or SELinux indicators.
command ls -ld $dir/old $dir/old/new $dir/old/new/fish | awk '{print substr($1, 1, 10)}'
# CHECK: drwxr-xr-x
# CHECK: drwx------
# CHECK: drwx------