summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/network/shorewall.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/network/shorewall.pm b/lib/network/shorewall.pm
index 1c8b4f5..13d43ea 100644
--- a/lib/network/shorewall.pm
+++ b/lib/network/shorewall.pm
@@ -37,9 +37,7 @@ sub set_config_file {
sub get_config_file {
my ($file, $o_ver) = @_;
- my $ver = '';
- $ver = $o_ver if $o_ver;
- map { [ split ' ' ] } grep { !/^#/ } cat_("$::prefix${shorewall_root}${ver}/$file");
+ map { [ split ' ' ] } grep { !/^#/ } cat_("$::prefix${shorewall_root}${o_ver}/$file");
}
# Note: Called from drakguard and drakfirewall.pm...