From 9321ecff4139f0776f93a9bd8c9606bcaf94f568 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Fri, 20 Dec 2019 11:43:53 -0500 Subject: [PATCH] no more need to add/remove / --- usr/lib/security-misc/permission-hardening | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/security-misc/permission-hardening b/usr/lib/security-misc/permission-hardening index c1db738..6a2cb86 100755 --- a/usr/lib/security-misc/permission-hardening +++ b/usr/lib/security-misc/permission-hardening @@ -29,7 +29,7 @@ echo_wrapper_audit() { } add_nosuid_statoverride_entry() { - fso_to_process="${fso_without_trailing_slash}/" + fso_to_process="$fso" should_be_counter="$(find "$fso_to_process" -perm /u=s,g=s | wc -l)" || true counter_actual=0