From 36db41457d3c0f32610d78e38ad98b7a6b1b3f9e Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 15 Feb 2013 12:45:49 -0800 Subject: [PATCH] Make 'version -a' work when not run by /sbin/shorewall. 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 aef6e4078..45933a10a 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -670,7 +670,7 @@ version_command() { [ $# -gt 0 ] && usage 1 if [ -n "$all" ]; then - echo "shorewall-core: $(cat $g_sharedir/coreversion)" + echo "shorewall-core: $(cat ${SHAREDIR}/shorewall/coreversion)" for product in shorewall shorewall6 shorewall-lite shorewall6-lite shorewall-init; do if [ -f ${SHAREDIR}/$product/version ]; then