I've just applied a patch to 'utilities/execute.c' so that
it uses the library routine 'copy_nword' when tokenizing
commands for execution, rather than handling this internally.
This means that it'll parse quoted strings in the natural
manner, rather than breaking on internal spaces.
The reason for mentioning this change here, is that I was
originally investigating bug #1324057, which is reporting
basically this problem wrt the "pass" directive.
Now it turns out that pass processing (together with one
or two other places in the ucd-snmp MIBs), still invokes
the original 'get_exec_output' routine, rather than the
newer 'run_exec_command'.
The main extensible directives ('exec' and 'sh') were
switched to use the newer style some time ago, but I didn't
notice these other uses of the original routine.
I would like to:
a) Convert these remaining directives to
use 'run_exec_command' directly, and
b) Convert 'get_exec_output' to be a simple
wrapper round 'run_exec_command' (to catch
any other private uses of this routine)
But I'm not sure whether this counts as a bug-fix
or a new feature. Can I ask for some indication as
to whether this is felt a reasonable change at this
(fairly late) stage?
Dave
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders