From 1c57144f8bd6015abd0bddd2c53d54ee27f84959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Wed, 26 Feb 2025 21:50:04 +0200 Subject: [PATCH] Fix `create-base-directories.fish` with SELinux (cherry picked from commit f224ff1d28dcf1e8f10b41b6cb96202521357d86) --- tests/checks/create-base-directories.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/checks/create-base-directories.fish b/tests/checks/create-base-directories.fish index 55b435d90..f6c863495 100644 --- a/tests/checks/create-base-directories.fish +++ b/tests/checks/create-base-directories.fish @@ -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------