diff --git a/usr/lib/security-misc/permission-hardening b/usr/lib/security-misc/permission-hardening index 624bd39..03eeecc 100755 --- a/usr/lib/security-misc/permission-hardening +++ b/usr/lib/security-misc/permission-hardening @@ -42,7 +42,7 @@ add_nosuid_statoverride_entry() { setguid_output="set-group-id" fi - if [ "$setguid" = "true" ] || [ "$setguid" = "true" ]; then + if [ "$setuid" = "true" ] || [ "$setguid" = "true" ]; then string_length_of_existing_mode="${#existing_mode}" if [ "$string_length_of_existing_mode" = "4" ]; then new_mode="${existing_mode:1}"