diff options
author | James Davidson <james.davidson@vyatta.com> | 2013-04-15 13:23:46 -0700 |
---|---|---|
committer | James Davidson <james.davidson@vyatta.com> | 2013-04-17 10:49:17 -0700 |
commit | 16655380cbe6206beda24bcf803d61e9aeeb2bfd (patch) | |
tree | 833523d71722168dd971101c61398b86255c8eac | |
parent | 3351b6a2724ab48e873d62b019be323e195aae36 (diff) | |
download | vyatta-cfg-system-16655380cbe6206beda24bcf803d61e9aeeb2bfd.tar.gz vyatta-cfg-system-16655380cbe6206beda24bcf803d61e9aeeb2bfd.zip |
Replace original config file handling behaviour
Bug 8864:
Commit 4dce31b15ce038527cbd03a21b23ad094d71750c changed the behaviour
of when a config file was not present. This change replaces the
original behaviour.
(cherry picked from commit aec7e4cefd206fa9397456917ec5e83e86089343)
-rwxr-xr-x | scripts/snmp/vyatta-snmp-v3.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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 |