[PATCH] Continuation lines

Ethan Galstad nagios at nagios.org
Sun Dec 9 17:53:05 CET 2007


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: nagios at nagios.org
Web:   www.nagios.org

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php




More information about the Developers mailing list