On 4/14/12 9:46 AM, Tom Eastep wrote: > On 4/14/12 9:29 AM, Spain, Dr. Jeffry A. wrote: >> After installing shorewall-core, shorewall, and shorewall6 4.5.2.1, I get >> the following error running shorewall restart: >> >> Restarting: Shorewall >> Compiling... >> Processing /etc/shorewall/params ... >> Loading Modules... >> Compiling /etc/shorewall/zones... >> Compiling /etc/shorewall/interfaces... >> Determining Hosts in Zones... >> Locating Action Files... >> Compiling /usr/share/shorewall/action.Drop for chain Drop... >> Compiling /usr/share/shorewall/action.Broadcast for chain Broadcast... >> Compiling /usr/share/shorewall/action.Invalid for chain Invalid... >> Compiling /usr/share/shorewall/action.NotSyn for chain NotSyn... >> Compiling /usr/share/shorewall/action.Reject for chain Reject... >> Compiling /etc/shorewall/policy... >> ERROR: Unable to open /usr /share >> /shorewall//lib.core: No such file or directory >> >> The file /usr/share/shorewall/lib.core exisits, but it appears that the path >> in the error message contains extra spaces and slashes. > > How did you install and on which distribution? >
Here is a patch that eliminates the problem.
patch /usr/share/shorewall/Shorewall/Config.pm < WHITESPACE.patch
I'll upload 4.5.2.2 shortly.
-Tom
Tom Eastep \ When I die, I want to go like my Grandfather who
Shoreline, \ died peacefully in his sleep. Not screaming like
Washington, USA \ all of the passengers in his car
http://shorewall.net \________________________________________________
diff --git a/Shorewall/Perl/Shorewall/Config.pm
b/Shorewall/Perl/Shorewall/Config.pm
index 485da63..9543b87 100644
--- a/Shorewall/Perl/Shorewall/Config.pm
+++ b/Shorewall/Perl/Shorewall/Config.pm
@@ -2269,8 +2269,9 @@ sub read_a_line1() {
while ( $currentline = <$currentfile> ) {
next if $currentline =~ /^\s*#/;
chomp $currentline;
- next if $currentline =~ /^\s*$/;
$currentline =~ s/#.*$//; # Remove Trailing Comments
+ $currentline =~ s/\s*$//; # Remove Trailing Whitespace
+ next if $currentline =~ /^\s*$/;
fatal_error "Non-ASCII gunk in file" if $currentline =~
/[^\s[:print:]]/;
$currentlinenumber = $.;
print "IN===> $currentline\n" if $debug;
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
