patch: nrpe fails to start when config file includes whitespace-only line
Simon Kitching
simon at ecnetwork.co.nz
Fri Mar 5 05:02:33 CET 2004
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.
Regards,
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nrpe-space.patch.txt
Type: text/x-patch
Size: 1486 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20040305/39db13fc/attachment.bin>
More information about the Developers
mailing list