From a1154170c9f65011ae1a9da51ea1d797381853a7 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Tue, 22 Oct 2019 08:54:17 -0400 Subject: [PATCH] Call original pkexec in case there are no arguments. --- usr/bin/pkexec.security-misc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr/bin/pkexec.security-misc b/usr/bin/pkexec.security-misc index 24d6008..58e3c81 100755 --- a/usr/bin/pkexec.security-misc +++ b/usr/bin/pkexec.security-misc @@ -72,7 +72,11 @@ done if [[ "$@" = "" ]]; then ## Call original pkexec in case there are no arguments. - pkexec.security-misc-orig "$original_args" + if [[ "$original_args" = "" ]]; then + pkexec.security-misc-orig + else + pkexec.security-misc-orig "$original_args" + fi exit $? fi