summaryrefslogtreecommitdiff
path: root/scripts/snmp
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-10-27 16:13:44 -0700
committerMohit Mehta <mohit.mehta@vyatta.com>2008-10-27 16:13:44 -0700
commit6bf9995ed54f023e4147c6011de6a1d5191e766d (patch)
tree8daf712a2ba368ce14e4f5b0059dbe93e5dc859f /scripts/snmp
parent1b0ad6073975f6a728d2fce1a266f22636f574cb (diff)
downloadvyatta-cfg-quagga-6bf9995ed54f023e4147c6011de6a1d5191e766d.tar.gz
vyatta-cfg-quagga-6bf9995ed54f023e4147c6011de6a1d5191e766d.zip
Fix Bug 3840 System error reported on initial SNMP commit with trap target
redirect error to /dev/null
Diffstat (limited to 'scripts/snmp')
-rw-r--r--scripts/snmp/vyatta-snmp.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/snmp/vyatta-snmp.pl b/scripts/snmp/vyatta-snmp.pl
index 6de63fb0..58dc374f 100644
--- a/scripts/snmp/vyatta-snmp.pl
+++ b/scripts/snmp/vyatta-snmp.pl
@@ -163,7 +163,7 @@ sub snmp_write_snmpv3_user {
my $vyatta_user = shift;
my $user = "rouser $vyatta_user\n";
- system ("sed -i '/user[[:space:]]*vyatta[[:alnum:]]*/d' $snmp_snmpv3_user_conf;");
+ system ("sed -i '/user[[:space:]]*vyatta[[:alnum:]]*/d' $snmp_snmpv3_user_conf 2>/dev/null;");
open(my $fh, '>>', $snmp_snmpv3_user_conf) || die "Couldn't open $snmp_snmpv3_user_conf - $!";
print $fh $user;
close $fh;