[PATCH] Let the gui use resource macros

Andreas Ericsson ae at op5.se
Tue Mar 31 16:14:11 CEST 2009


Hendrik Baecker wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> 
> Andreas Ericsson schrieb:
>>    Make resource ($USERx$) macros available in the GUI
>>       The patch is rather simple. We just let the read_main_config_file()
>>    function in cgi/cgiutils.c grok the "resource_file" variable and
>>    move the function read_resource_file() from base/config.c to
>>    common/macros.c so that it's linked into the cgi's as well as the
>>    core daemon.
>>       Signed-off-by: Andreas Ericsson <ae at op5.se>
>>
> 
> Erm... I thought the ressource_file was the last little thing to hide
> some macros from the CGIs as a security benefit.
> 
> http://nagios.sourceforge.net/docs/3_0/configmain.html#resource_file
> 
> I don't like that patch ;|
> 

Ah, right. Thanks for pointing me to that. I had completely forgotten
about it. Ethan, please disregard and feel free to smack me on the
head when we meet next time.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

------------------------------------------------------------------------------




More information about the Developers mailing list