[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] hobbit-confreport.sh not working
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] hobbit-confreport.sh not working
- From: henrik (at) hswn.dk (Henrik Stoerner)
- Date: Wed, 31 May 2006 18:13:34 +0200
- References: <447DB689.8040706@lmco.com>
- User-agent: Mutt/1.5.9i
On Wed, May 31, 2006 at 11:30:17AM -0400, Michael Nemeth wrote:
> Still not working with may 31 snapshot
> sunos 5.9
> geting Interal Server Error and apache log shows premature end of script
> headers.
Does this help ?
Henrik
--- web/hobbit-confreport.c 2006/05/25 14:30:30 1.14
+++ web/hobbit-confreport.c 2006/05/31 16:12:40
@@ -8,7 +8,7 @@
/* */
/*----------------------------------------------------------------------------*/
-static char rcsid[] = "$Id: hobbit-confreport.c,v 1.14 2006/05/25 14:30:30 henrik Exp $";
+static char rcsid[] = "$Id: hobbit-confreport.c,v 1.15 2006/05/31 16:12:38 henrik Exp $";
#include <sys/types.h>
#include <sys/stat.h>
@@ -446,7 +446,7 @@
}
xfree(alert);
- if (buf) {
+ if (STRBUFLEN(buf) > 0) {
fprintf(stdout, "<tr>\n");
fprintf(stdout, "<th align=left valign=top>Alerts</th>\n");
fprintf(stdout, "<td><table border=0 cellpadding=\"3\" cellspacing=\"5\" summary=\"%s alerts\">\n", host->hostname);