From 133d09f2984506e0b0fd2e17a893b8d3e37b8431 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Fri, 20 Dec 2019 10:33:16 -0500 Subject: [PATCH] output --- usr/lib/security-misc/permission-hardening | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr/lib/security-misc/permission-hardening b/usr/lib/security-misc/permission-hardening index a11ca77..49a5866 100755 --- a/usr/lib/security-misc/permission-hardening +++ b/usr/lib/security-misc/permission-hardening @@ -154,11 +154,6 @@ set_file_perms() { continue fi - if ! [ -e "$fso" ]; then - echo "INFO: fso: '$fso' - does not exist. This is likely normal." - continue - fi - fso_without_trailing_slash="${fso%/}" if [ "$mode_from_config" = "whitelist" ]; then @@ -166,6 +161,11 @@ set_file_perms() { continue fi + if ! [ -e "$fso" ]; then + echo "INFO: fso: '$fso' - does not exist. This is likely normal." + continue + fi + ## Use dpkg-statoverride so permissions are not reset during upgrades. nosuid=""