From 8a78fb6e77891d7c5de3f5c5cb200a13c6a5ebf7 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 29 Aug 2017 09:06:36 -0700 Subject: [PATCH] Correct -p check for the conntrack utility's availability Signed-off-by: Tom Eastep --- Shorewall/Perl/lib.runtime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/lib.runtime b/Shorewall/Perl/lib.runtime index 14265b652..de0c38933 100644 --- a/Shorewall/Perl/lib.runtime +++ b/Shorewall/Perl/lib.runtime @@ -421,7 +421,7 @@ restore_default_route() # $1 = USE_DEFAULT_RT conditionally_flush_conntrack() { if [ -n "$g_purge" ]; then - if [ -n $(mywhich conntrack) ]; then + if [ -n "$(mywhich conntrack)" ]; then conntrack -F else error_message "WARNING: The '-p' option requires the conntrack utility which does not appear to be installed on this system"