forked from extern/shorewall_code
Prospective fix for Blahdeblah's /etc/protocols problem
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6685 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
47419bee3f
commit
379ed95564
@ -121,10 +121,14 @@ EOF
|
||||
open_file 'protocols' or fatal_error "Cannot open protocols: $!";
|
||||
|
||||
while ( read_a_line1 ) {
|
||||
my ( $proto1, $number, $proto2, $proto3 ) = split_line( 2, 4, '/etc/protocols entry');
|
||||
my ( $proto1, $number, @aliases ) = split_line( 2, 10, '/etc/protocols entry');
|
||||
|
||||
print_it( $proto1, $number );
|
||||
print_it( $proto2, $number ) unless $proto2 eq '-' || $proto3 ne '-';
|
||||
|
||||
for my $alias ( @aliases ) {
|
||||
last if $alias eq '-';
|
||||
print_it( $alias, $number );
|
||||
}
|
||||
}
|
||||
|
||||
print "\t\t );\n\n";
|
||||
|
Loading…
Reference in New Issue
Block a user