Package: nagios3-cgi
Version: 3.2.0-5
Tags: patch

There is a bug when stripping the log_archive_path value from cgi.cfg. It looks like a copy and paste error.

Patch attached.

--
Omni Flux
diff -uNr nagios3-3.2.0.orig/cgi/cgiutils.c nagios3-3.2.0/cgi/cgiutils.c
--- nagios3-3.2.0.orig/cgi/cgiutils.c   2009-07-31 10:54:20.000000000 -0600
+++ nagios3-3.2.0/cgi/cgiutils.c        2010-04-18 00:52:00.000000000 -0600
@@ -481,7 +481,7 @@
                        temp_buffer=strtok(NULL,"\n");
                        
strncpy(log_archive_path,(temp_buffer==NULL)?"":temp_buffer,sizeof(log_archive_path));
                        log_archive_path[sizeof(log_archive_path)-1]='\x0';
-                       strip(physical_html_path);
+                       strip(log_archive_path);
                        if(log_archive_path[strlen(log_archive_path)-1]!='/' && 
(strlen(log_archive_path) < sizeof(log_archive_path)-1))
                                strcat(log_archive_path,"/");
                        }

Reply via email to