Fix comment regarding 'add_a_rule'

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5010 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-11-26 20:28:25 +00:00
parent f2eb6f71e4
commit 8abaecbc26
2 changed files with 4 additions and 1 deletions

View File

@ -1815,6 +1815,9 @@ add_a_rule() {
case "$logtarget" in case "$logtarget" in
ACCEPT|DROP|REJECT|CONTINUE) ACCEPT|DROP|REJECT|CONTINUE)
if [ "$SECTION" != DONE ]; then if [ "$SECTION" != DONE ]; then
#
# This function is called from process_default_macro() after rules are DONE
#
if [ -z "$proto" -a -z "$cli" -a -z "$serv" -a -z "$servport" -a -z "$user" -a -z "$excludesource" -a -z "$excludedest" ] ; then if [ -z "$proto" -a -z "$cli" -a -z "$serv" -a -z "$servport" -a -z "$user" -a -z "$excludesource" -a -z "$excludedest" ] ; then
error_message "WARNING -- Rule \"$rule\" is a POLICY" error_message "WARNING -- Rule \"$rule\" is a POLICY"
error_message " -- and should be moved to the policy file" error_message " -- and should be moved to the policy file"

View File

@ -705,7 +705,7 @@ __EOF__
if [ $addr = detect ]; then if [ $addr = detect ]; then
ensurenatchain $(dnat_chain $source) ensurenatchain $(dnat_chain $source)
# #
# The 'for loops' begun below are completed in add_a_rule() whose declaration follows # The 'for loops' begun below are completed in add_a_rule() (in the compiler)
# #
indent >&3 << __EOF__ indent >&3 << __EOF__