From bcb25739186c0faab6f53c3b0c1fd13392b9651a Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 14 Oct 2013 07:51:07 -0700 Subject: [PATCH] Don't try to get firewall version if not root Signed-off-by: Tom Eastep --- Shorewall-core/lib.cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index af3ca0101..b54b33209 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -680,7 +680,7 @@ version_command() { fi done - if [ -f $g_firewall ]; then + if [ "$(id -u)" -eq 0 -a -f $g_firewall ]; then echo $g_echo_n "$g_firewall was compiled by Shorewall version " $g_firewall version fi