From b95225b6a6b45b84778ba2427ae4628f102e6d05 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Fri, 20 Dec 2019 11:37:05 -0500 Subject: [PATCH] pipefail --- usr/lib/security-misc/permission-hardening | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/lib/security-misc/permission-hardening b/usr/lib/security-misc/permission-hardening index bc0d5db..c1db738 100755 --- a/usr/lib/security-misc/permission-hardening +++ b/usr/lib/security-misc/permission-hardening @@ -8,6 +8,7 @@ #set -x set -e +set -o pipefail exit_code=0 @@ -29,7 +30,7 @@ echo_wrapper_audit() { add_nosuid_statoverride_entry() { fso_to_process="${fso_without_trailing_slash}/" - should_be_counter="$(find "$fso_to_process" -perm /u=s,g=s | wc -l)" + should_be_counter="$(find "$fso_to_process" -perm /u=s,g=s | wc -l)" || true counter_actual=0 while read -r line; do