summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJames Davidson <james.davidson@vyatta.com>2013-04-15 13:23:46 -0700
committerJames Davidson <james.davidson@vyatta.com>2013-04-15 13:23:46 -0700
commitaec7e4cefd206fa9397456917ec5e83e86089343 (patch)
tree6c6e1bcab18b80203f4858bb7cd6202c8dd558b3 /scripts
parent5076fa0fc81706b31f85493bbca9966455ea9066 (diff)
downloadvyatta-cfg-system-aec7e4cefd206fa9397456917ec5e83e86089343.tar.gz
vyatta-cfg-system-aec7e4cefd206fa9397456917ec5e83e86089343.zip
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.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/snmp/vyatta-snmp-v3.pl2
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