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