From 4cd77bf9aaabd35c90e51bfa7f5696fbbbd07492 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 2 Dec 2010 10:14:45 -0800 Subject: [PATCH] Correct handling of params file opens. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Config.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 2091dcb8a..c42db730c 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -2889,8 +2889,9 @@ sub unsupported_yes_no_warning( $ ) { # Process the params file # sub get_params() { - if ( my $fn = find_file 'params' ) { + my $fn = find_file 'params'; + if ( -f $fn ) { progress_message2 "Processing $fn ..."; my $command = "$globals{SHAREDIRPL}/getparams $fn " . join( ':', @config_path );