Matthias Eble wrote:
> 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
>
Thanks Matthias - patch will be in CVS shortly.
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]