Handle lines containing only 'INCLUDE'

This commit is contained in:
Tom Eastep 2011-01-18 14:58:56 -08:00
parent cdd897e620
commit d5f3b31032
3 changed files with 13 additions and 1 deletions

View File

@ -1424,7 +1424,7 @@ sub copy1( $ ) {
}
if ( $do_indent ) {
if ( /^\s*INCLUDE\s/ ) {
if ( /^\s*INCLUDE\b/ ) {
my @line = split / /;
fatal_error "Invalid INCLUDE command" if @line != 2;

View File

@ -1,5 +1,9 @@
Changes in Shorewall 4.4.17 Beta 1
1) Handle line containing only INCLUDE.
Changes in Shorewall 4.4.17 Beta 1
1) Improve readability of logging logic in expand_rule().
2) Improve efficency of oddball targets in process_rule1().

View File

@ -14,6 +14,14 @@ VI. PROBLEMS CORRECTED AND NEW FEATURES IN PRIOR RELEASES
I. P R O B L E M S C O R R E C T E D I N T H I S R E L E A S E
----------------------------------------------------------------------------
Beta 2
1) A line containing only 'INCLUDE' appearing in an extension script
now generates a compile-time diagnostic rather than a run-time
diagnostic.
Beta 1
1) Previously, a 'done.' message could be printed at the end of
command processing even when the command had failed. Now, such a
message only appears if the command completed successfully.