[Nagiosplug-devel] N::P bug in handling >2 repeated arguments from .ini config

Gavin Carr gavin at openfusion.com.au
Fri Nov 16 20:28:25 CET 2007


On Fri, Nov 16, 2007 at 11:39:43AM -0500, Thomas Guyot-Sionnest wrote:
> It applies on 3 and more repeated arguments from the ini file:
> 
> $ ./check_stuff -D foo,bar,baz
> CHECK_STUFF OK - Arguments: foo,bar,baz
> 
> $ ./check_stuff -D foo -D bar -D baz
> CHECK_STUFF OK - Arguments: foo,bar,baz
> 
> $ ./check_stuff --extra-opts=check_stuff_test1
> CHECK_STUFF OK - Arguments: foo,bar,baz
> 
> $ ./check_stuff --extra-opts=check_stuff_test2
> CHECK_STUFF OK - Arguments: ARRAY(0x9fd210),baz
> 
> Just put the ini file in /etc and run the commands above. I attached the
> patch as well.

Sorry Thomas, I've been meaning to look at it but haven't had time lately. 
Your fix looks good to me though, so +1 here.

Cheers,
Gavin





More information about the Devel mailing list