From c827820dff471aba506c1d5e2afb0b49a6d50122 Mon Sep 17 00:00:00 2001 From: teastep Date: Wed, 16 May 2007 03:43:35 +0000 Subject: [PATCH] Straighten out -e and appropriate priv -- take 2 git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6369 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-common/shorewall | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall-common/shorewall b/Shorewall-common/shorewall index 9a5e3e99f..b92164621 100755 --- a/Shorewall-common/shorewall +++ b/Shorewall-common/shorewall @@ -261,8 +261,8 @@ compiler() { shift - if [ -z "$EXPORT" -a $(id -u) -ne 0 ]; then - startup_error "Ordinary users may only comple for export (-e option)" + if [ -z "$EXPORT" -a $(id -u) -ne 0 -a -z "$SHOREWALL_DIR" ]; then + startup_error "Ordinary users may only comple for export (-e option) or from a specified directory" fi # # We've now set SHOREWALL_DIR so recalculate CONFIG_PATH