Fix for missing 'init' file

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5172 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-12-30 18:04:15 +00:00
parent 46cffe3dd3
commit 8558d49676
3 changed files with 21 additions and 4 deletions

View File

@ -2,6 +2,8 @@ Changes in 3.4.0 Beta 2
1) Fix for empty blacklist file.
2) Don't copy files from /usr/share/shorewall into the compiled script.
Changes in 3.4.0 Beta 1
1) Correct handling of masq file.

View File

@ -117,10 +117,20 @@ append_file() # $1 = File Name
{
local user_exit=$(find_file $1)
if [ -f $user_exit ]; then
save_progress_message "Processing $user_exit ..."
indent $user_exit >&3
fi
case $user_exit in
$SHAREDIR/*)
#
# Don't copy files from /usr/share/shorewall into the compiled script
#
;;
*)
if [ -f $user_exit ]; then
save_progress_message "Processing $user_exit ..."
indent $user_exit >&3
save_command
fi
;;
esac
}
#

View File

@ -35,6 +35,11 @@ Problems Corrected in 3.4.0 Beta 2
script contained a syntax error (the function load_blacklist() was
empty).
2) If the file /etc/shorewall/init did not exist, then the compiler
would incorrectly copy /usr/share/shorewall/init into the
compiled script. /usr/share/shorewall/init is a symbolic link
to the Shorewall init script (usually /etc/init.d/shorewall).
Migration Considerations:
1) Shorewall supports the notion of "default actions". A default