Re: [Nagios-devel] [PATCH] Continuation lines
Posted: Sun Dec 09, 2007 8:53 am
Holger Weiss wrote:
> The attached patch adds support for using continuation lines throughout
> all configuration files: If the last character before a newline is a
> backslash, the backslash will be stripped, and if the second last
> character is not a backslash, the following line will be appended prior
> to parsing.
>
> base/utils.c (and cgi/cgiutils.c) had an mmap_fgets_multiline() function
> already, but the function wasn't used anywhere and it didn't work out of
> the box.
>
> Holger
>
Thanks for the note and patch Holger. I must have forgotten to finish
implementing this in the past. I fixed the bug in the original function
and have posted the fixes to CVS.
Ethan Galstad
Nagios Developer
___
Email: [email protected]
Web: www.nagios.org
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
> The attached patch adds support for using continuation lines throughout
> all configuration files: If the last character before a newline is a
> backslash, the backslash will be stripped, and if the second last
> character is not a backslash, the following line will be appended prior
> to parsing.
>
> base/utils.c (and cgi/cgiutils.c) had an mmap_fgets_multiline() function
> already, but the function wasn't used anywhere and it didn't work out of
> the box.
>
> Holger
>
Thanks for the note and patch Holger. I must have forgotten to finish
implementing this in the past. I fixed the bug in the original function
and have posted the fixes to CVS.
Ethan Galstad
Nagios Developer
___
Email: [email protected]
Web: www.nagios.org
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]