mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-17 03:40:53 +01:00
Avoid generating 'non-existant variable' errors on the SCP and RSH commands in shorewall.conf
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8280 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
a0b86bb207
commit
846f251825
@ -426,6 +426,13 @@ sub initialize() {
|
||||
|
||||
INIT {
|
||||
initialize;
|
||||
#
|
||||
# These variables appear within single quotes in shorewall.conf -- add them to ENV
|
||||
# so that read_a_line doesn't have to be smart enough to parse that usage.
|
||||
#
|
||||
for ( qw/root system command files destination/ ) {
|
||||
$ENV{$_} = '' unless exists $ENV{$_};
|
||||
}
|
||||
}
|
||||
|
||||
my @abbr = qw( Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec );
|
||||
|
Loading…
Reference in New Issue
Block a user