From 98535e3a2bc5d0d54694a1ea71f3afef3f468943 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Fri, 20 Dec 2019 03:39:25 -0500 Subject: [PATCH] refactoring --- usr/lib/security-misc/permission-hardening | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/security-misc/permission-hardening b/usr/lib/security-misc/permission-hardening index b904770..8c0ff57 100755 --- a/usr/lib/security-misc/permission-hardening +++ b/usr/lib/security-misc/permission-hardening @@ -54,9 +54,9 @@ add_statoverride_entry() { echo_wrapper dpkg-statoverride --add --update "$owner" "$group" "$new_mode" "$file_name" fi fi - done < <( stat -c "%n %a %U %G" "${fso%/}/"** ) + done < <( stat -c "%n %a %U %G" "${fso_without_trailing_slash}/"** ) else - echo_wrapper dpkg-statoverride --add --update "$owner" "$group" "$mode_from_config" "${fso%/}" + echo_wrapper dpkg-statoverride --add --update "$owner" "$group" "$mode_from_config" "$fso_without_trailing_slash" fi }