i have tested net-snmp on a debian ARM9 system (TS7200 of Technology Systems)
$ /usr/sbin/snmpd --version
NET-SNMP version: 5.2.3
on snmpd.conf i have a pass invocation:
pass OID /bin/sh /home/user/command.sh
when i execute this script, it append a line on a file, in this line i put the last command invocation with snmpset... something like that:
echo "XX'$4'XX" >> $FILE.dbg
($4 is the last argument) so, when execute the script with:
$./comand.sh -s OID type value
on $FILE.dbg i get:
XX'value'XX
and when i make a:
$snmpset -v 2c -c ... OID type value
on $FILE.dbg i get:
XX'value
'XX
so, the snmpset put a carrier return after value, and this doesn't complain my requeriments...
i hope this can be understood, i'm not good in english nor debugging, but i think this is a bug.
Logged In: YES
user_id=88893
Originator: NO
I've just checked this with the latest version of the 5.2.x line (5.2.5)
and cannot reproduce the problem - the logged value does not
include the trailing newline character.
I've had a quick look at the code but can't spot the relevant
change(s). But it would be worth you trying with a more recent
version of the code.
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 180 days (the time period specified by
the administrator of this Tracker).