From aec7e4cefd206fa9397456917ec5e83e86089343 Mon Sep 17 00:00:00 2001 From: James Davidson Date: Mon, 15 Apr 2013 13:23:46 -0700 Subject: Replace original config file handling behaviour Bug 8864: Commit 1f90d46cbc889d45dbfd5e499ad24a399b059d3b changed the behaviour of when a config file was not present. This change replaces the original behaviour. --- scripts/snmp/vyatta-snmp-v3.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/snmp/vyatta-snmp-v3.pl b/scripts/snmp/vyatta-snmp-v3.pl index 2bf9b582..5391a85f 100755 --- a/scripts/snmp/vyatta-snmp-v3.pl +++ b/scripts/snmp/vyatta-snmp-v3.pl @@ -54,7 +54,7 @@ sub randhex { sub parse_config_file { open( my $cfg, '<', $vyatta_config_file ) - or die "Can't open: $vyatta_config_file: $!"; + or return; while (<$cfg>) { chomp; # no newline s/#.*//; # no comments -- cgit v1.2.3