diff --git a/Shorewall-common/diff-3.4-shorewall b/Shorewall-common/diff-3.4-shorewall index 32934dd09..7c1f930cd 100644 --- a/Shorewall-common/diff-3.4-shorewall +++ b/Shorewall-common/diff-3.4-shorewall @@ -1,6 +1,6 @@ ---- /home/teastep/shorewall/branches/3.4/Shorewall/shorewall 2007-06-16 08:15:22.000000000 -0700 -+++ Shorewall-common/shorewall 2007-06-16 08:37:06.000000000 -0700 -@@ -1293,7 +1293,7 @@ +--- /home/teastep/shorewall/branches/3.4/Shorewall/shorewall 2007-06-17 07:10:53.000000000 -0700 ++++ shorewall 2007-06-17 07:15:13.000000000 -0700 +@@ -1297,7 +1297,7 @@ echo " stop" echo " status" echo " try [ -C {shell|perl} ] [ ]" @@ -9,7 +9,7 @@ echo " safe-start [ -C {shell|perl} ] [ ]" echo " safe-restart [ -C {shell|perl} ] [ ]" echo -@@ -1437,6 +1437,10 @@ +@@ -1441,6 +1441,10 @@ echo $version if [ -n "$all" ]; then diff --git a/Shorewall-common/shorewall b/Shorewall-common/shorewall index 81dd682de..f3ecb7489 100755 --- a/Shorewall-common/shorewall +++ b/Shorewall-common/shorewall @@ -323,7 +323,11 @@ compiler() { [ -n "$DEBUG" ] && debugflags='-wd' [ -n "$PROFILE" ] && debugflags='-wd:DProf' - shift # Perl compiler only takes the output file as a argument + # Perl compiler only takes the output file as a argument + + [ "$1" = debug ] && shift; + [ "$1" = nolock ] && shift; + shift options="--verbose $VERBOSE "; [ -n "$EXPORT" ] && options="$options --export "; @@ -884,7 +888,7 @@ safe_commands() { progress_message3 "Compiling..." - if ! compiler run $debugging nolock ${VARDIR}/.$command; then + if ! compiler run $debugging nolock compile ${VARDIR}/.$command; then status=$? [ -n "$nolock" ] || mutex_off exit $status