From f0c2da87360a3fbfd9cf181548209d040b850a56 Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Thu, 22 Oct 2015 22:19:17 +0300 Subject: [PATCH] fix to remove a space that was appended on all commands detected; added a check to make sure the autoconf configured commands still exist; #82 --- sbin/firehol.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/firehol.in b/sbin/firehol.in index 0b133b0..1da7b79 100755 --- a/sbin/firehol.in +++ b/sbin/firehol.in @@ -906,7 +906,7 @@ which_cmd() { fi shift - eval $name="'${cmd} ${@}'" + eval $name="'${cmd}'" return 0 } @@ -991,7 +991,7 @@ do if [ "$set_in_defaults" ] then : - elif [ "@AUTOCONF_RUN@" = "Y" -a ! -z "$autoconf" ] + elif [ "@AUTOCONF_RUN@" = "Y" -a ! -z "$autoconf" -a -x "$autoconf" ] then eval $cmd_var=\"$autoconf\" else