Re: [Nagios-devel] Leading space in continuation lines

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Leading space in continuation lines

Post by Guest »


Holger Weiss wrote:
> * Gerhard Lausser [2009-05-02 13:49]:
>> I attached a patch for base/utils.c(mmap_fgets_multiline) (v3.10) which cuts
>> off leading white space from continuation lines.
>
> Of course, this breaks configurations which do stuff like
>
> command_line $USER1$/check_foo one\
> two
>
> and expect to get this parsed with white space between "one" and "two".
> However, this incompatibility is probably negligible, and I guess most
> users would prefer if leading white space was stripped from continuation
> lines.
>
> So, I'd appreciate if the patch was committed. I've attached a version
> of the diff which updates cgi/cgiutils.c:mmap_fgets_multiline(), too,
> and which simplifies the code a bit.
>
> Holger
>

Thanks - patch is in CVS.


- Ethan Galstad





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