Don't try to get firewall version if not root

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-10-14 07:51:07 -07:00
parent 66c2fca2b0
commit bcb2573918

View File

@ -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