[Nagios-devel] Minor bug in cgiutils.c reads incorrect config file

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Minor bug in cgiutils.c reads incorrect config file

Post by Guest »

There's one place left where the code uses DEFAULT_CGI_CONFIG_FILE
instead of get_cgi_config_location():

--- nagios-2.5/cgi/cgiutils.c.DIST 2006-11-10 13:53:25.794049342
-0500
+++ nagios-2.5/cgi/cgiutils.c 2006-11-10 13:54:51.711147275 -0500
@@ -1561,7 +1561,7 @@
int result;

/* read program status */
-
result=3Dread_all_status_data(DEFAULT_CGI_CONFIG_FILE,READ_PROGRAM_STATUS=
)
;
+
result=3Dread_all_status_data(get_cgi_config_location(),READ_PROGRAM_STAT=
U
S);

printf("\n");
printf("\n");





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked