Steven Jan Springl wrote: > On Friday 07 December 2007 00:26, Tom Eastep wrote: >> Shorewall 4.1.2 is now available for testing. > > Tom > > If LOG_VERBOSITY=2 is specified and STARTUP_LOG is not specified, > the following messages are produced: >
Steven, Please try the attached patch. I got different symtoms than you did but it's probably because we are using different shells. Thanks, -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ [EMAIL PROTECTED] PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key
Index: Shorewall/Config.pm
===================================================================
--- Shorewall/Config.pm (revision 7827)
+++ Shorewall/Config.pm (working copy)
@@ -1791,9 +1791,24 @@
check_trivalue ( 'ROUTE_FILTER', '' );
check_trivalue ( 'LOG_MARTIANS', '' );
- default 'LOG_VERBOSITY' , -1;
default 'STARTUP_LOG' , '';
+ if ( $config{STARTUP_LOG} ne '' ) {
+ if ( defined $config{LOG_VERBOSITY} ) {
+ if ( $config{LOG_VERBOSITY} eq '' ) {
+ $config{LOG_VERBOSITY} = 2;
+ } else {
+ my $val = numeric_value1( $config{LOG_VERBOSITY} );
+ fatal_error "Invalid LOG_VERBOSITY ($config{LOG_VERBOSITY} )" unless defined $val && $val >= -1 && $val <= 2;
+ $config{STARTUP_LOG} = '' if $config{LOG_VERBOSITY} < 0;
+ }
+ } else {
+ $config{LOG_VERBOSITY} = 2;
+ }
+ } else {
+ $config{LOG_VERBOSITY} = -1;
+ }
+
default_yes_no 'ADD_IP_ALIASES' , 'Yes';
default_yes_no 'ADD_SNAT_ALIASES' , '';
default_yes_no 'DETECT_DNAT_IPADDRS' , '';
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
