summaryrefslogtreecommitdiffstats
path: root/lib/network/drakfirewall.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-04 23:37:14 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-04 23:37:14 +0000
commit05f6df22297469a81e9c839491228c4396fa2cb7 (patch)
treea5af4fa9172e16cb7d4b2f1fe60c8305ef937841 /lib/network/drakfirewall.pm
parenta39c099fefa2f1e3fc29e854972a27b5a7c804ee (diff)
downloaddrakx-net-05f6df22297469a81e9c839491228c4396fa2cb7.tar
drakx-net-05f6df22297469a81e9c839491228c4396fa2cb7.tar.gz
drakx-net-05f6df22297469a81e9c839491228c4396fa2cb7.tar.bz2
drakx-net-05f6df22297469a81e9c839491228c4396fa2cb7.tar.xz
drakx-net-05f6df22297469a81e9c839491228c4396fa2cb7.zip
do not ask which interfaces to protect if disabled (#27049)
Diffstat (limited to 'lib/network/drakfirewall.pm')
-rw-r--r--lib/network/drakfirewall.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/drakfirewall.pm b/lib/network/drakfirewall.pm
index 659606a..b8da667 100644
--- a/lib/network/drakfirewall.pm
+++ b/lib/network/drakfirewall.pm
@@ -139,7 +139,7 @@ sub get_ports() {
sub set_ports {
my ($do_pkgs, $disabled, $ports, $log_net_drop, $o_in) = @_;
- my $shorewall = network::shorewall::read($o_in) or return;
+ my $shorewall = network::shorewall::read(!$disabled && $o_in) or return;
if (!$disabled || -x "$::prefix/sbin/shorewall") {
$do_pkgs->ensure_binary_is_installed('shorewall', 'shorewall', $::isInstall) or return;