[hobbit] Latest snapshot - DOWNTIME applied to individual tests

Henrik Stoerner henrik at hswn.dk
Mon Jun 26 17:11:28 CEST 2006


On Mon, Jun 26, 2006 at 04:51:33PM +0200, Henrik Stoerner wrote:
> On Mon, Jun 26, 2006 at 04:33:17PM +0200, Frédéric Mangeant wrote:
> > But adding this entry in bb-hosts :
> > 
> > 10.50.8.55      fmangeant               # "DOWNTIME=*:*:1000:1600:Test af downtime" telnet
> > 
> > gives this under the 'info' column :
> > 
> > Planned downtime:All days:*:1000:1600:Test
> > 
> > It should have been "Test af downtime"...
> 
> There's something screwy with the quoting in bb-hosts. Need to get that
> fixed.

Apparently it's only a display-thing. This patch should fix it.

Henrik

-------------- next part --------------
--- lib/timefunc.c	2006/05/03 21:12:33	1.29
+++ lib/timefunc.c	2006/06/26 15:09:54
@@ -11,7 +11,7 @@
 /*                                                                            */
 /*----------------------------------------------------------------------------*/
 
-static char rcsid[] = "$Id: timefunc.c,v 1.29 2006/05/03 21:12:33 henrik Exp $";
+static char rcsid[] = "$Id: timefunc.c,v 1.30 2006/06/26 15:09:57 henrik Exp $";
 
 #include <time.h>
 #include <sys/time.h>
@@ -89,7 +89,6 @@
 	}
 
 	sCopy = strdup(spec);
-	sCopy[strcspn(sCopy, " \t\r\n")] = '\0';
 	sItem = strtok(sCopy, ",");
 	while (sItem) {
 		char *oneday, *dtext;


More information about the Xymon mailing list