Page 1 of 1

Re: [Fwd: [Nagios-devel] patch: nrpe fails to start when config file includes whitespace-only line]

Posted: Wed Mar 10, 2004 10:00 pm
by Guest
Thanks - I'll get this applied tonight.


On 11 Mar 2004 at 17:46, Simon Kitching wrote:

> Note: repost, as the original has not appeared after 6 days.
>
> -----Forwarded Message-----
> > From: Simon Kitching
> > To: [email protected]
> > Subject: [Nagios-devel] patch: nrpe fails to start when config file
> > includes whitespace-only line Date: Fri, 05 Mar 2004 17:02:33 +1300
> >
> > Hi,
> >
> > If nrpe's config file should include a line containing only
> > whitespace, then it will fail to start. I found this rather tricky
> > to diagnose!
> >
> > To demonstrate bug:
> > nrpe -d -c {config-file}
> > then
> > ps -efl | grep nrpe
> >
> > For a config file containing " \n", nrpe will fail to start.
> >
> > So attached is a simple patch to ignore all whitespace on the start
> > of any line in the config file. Note that this means that " x=foo"
> > and "
> > # a comment" will now be regarded as valid rather than invalid as
> > # was
> > previously done (leading whitespace is just ignored).
> >
> > The patch is in conventional "universal diff" format.
>
> And that should of course be "unified diff".
>
> Regards,
>
> Simon
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________ Nagios-devel mailing
> list [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>



Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]