Correct handling of params file opens.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-12-02 10:14:45 -08:00
parent ec75c8aa86
commit 4cd77bf9aa

View File

@ -2889,8 +2889,9 @@ sub unsupported_yes_no_warning( $ ) {
# Process the params file # Process the params file
# #
sub get_params() { sub get_params() {
if ( my $fn = find_file 'params' ) { my $fn = find_file 'params';
if ( -f $fn ) {
progress_message2 "Processing $fn ..."; progress_message2 "Processing $fn ...";
my $command = "$globals{SHAREDIRPL}/getparams $fn " . join( ':', @config_path ); my $command = "$globals{SHAREDIRPL}/getparams $fn " . join( ':', @config_path );