mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-22 15:43:30 +01:00
Revert "When exporting or testing, set all variables defined in the params file"
This reverts commit f9003fab43
.
This commit is contained in:
parent
112c4dc38a
commit
3f0e4959a1
@ -59,7 +59,7 @@ our $have_arptables; # True if we have arptables rules
|
||||
# Initilize the package-globals in the other modules
|
||||
#
|
||||
sub initialize_package_globals( $$$ ) {
|
||||
Shorewall::Config::initialize($family, $export, $test, $_[1], $_[2]);
|
||||
Shorewall::Config::initialize($family, $export, $_[1], $_[2]);
|
||||
Shorewall::Chains::initialize ($family, 1, $export );
|
||||
Shorewall::Zones::initialize ($family, $_[0]);
|
||||
Shorewall::Nat::initialize($family);
|
||||
|
@ -791,16 +791,8 @@ our %ipsets; # All required IPsets
|
||||
#
|
||||
our %filecache;
|
||||
|
||||
#
|
||||
# When we ran
|
||||
#
|
||||
our $compiletime;
|
||||
|
||||
#
|
||||
# The -t option was specified to the compile command
|
||||
#
|
||||
our $test;
|
||||
|
||||
sub process_shorewallrc($$);
|
||||
sub add_variables( \% );
|
||||
#
|
||||
@ -813,8 +805,8 @@ sub add_variables( \% );
|
||||
# 2. The compiler can run multiple times in the same process so it has to be
|
||||
# able to re-initialize its dependent modules' state.
|
||||
#
|
||||
sub initialize($$;$$$) {
|
||||
( $family, $export, $test, my ( $shorewallrc, $shorewallrc1 ) ) = @_;
|
||||
sub initialize($;$$$) {
|
||||
( $family, $export, my ( $shorewallrc, $shorewallrc1 ) ) = @_;
|
||||
|
||||
if ( $family == F_IPV4 ) {
|
||||
( $product, $Product, $toolname, $toolNAME ) = qw( shorewall Shorewall iptables IPTABLES );
|
||||
@ -6007,14 +5999,11 @@ sub export_params() {
|
||||
} else {
|
||||
$value =~ s/'"'"'/'/g;
|
||||
}
|
||||
|
||||
#
|
||||
# Don't export pairs from %ENV
|
||||
#
|
||||
if ( defined $ENV{$param} ) {
|
||||
unless ( $export || $test ) {
|
||||
next if $value eq $ENV{$param};
|
||||
}
|
||||
} elsif ( exists $ENV{$param} ) {
|
||||
next unless supplied $value;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user