On demand macros with empty host name not working since 3.0b7
Matthias Eble
matthias.eble at mailing.kaufland-informationssysteme.com
Mon Feb 4 10:57:26 CET 2008
Hi list,
when testing around with nagios 3.0 I recognized that support for empty
host names in on demand macros was broken somewhere between b6 and b7.
The problem is located in common/macros.c line 842:
/* if first arg is blank, it means use the current host name */
if(arg1==NULL){
But arg1 isn't a null pointer in this case. Changing the line to
if(*arg1=='\x0'){
brings back expected behaviour.
It'd be great to see this fixed in next rc/stable
Matthias
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
More information about the Developers
mailing list