[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

purple hosts - SOLVED.



I think I finally have the fix to purple hosts when the host starts with
number!

The REAL culprit is lib/timefunc.c in durationvalue function.

--- lib/timefunc.c      (revision 6223)
+++ lib/timefunc.c      (working copy)
@@ -456,7 +456,7 @@

        startofval = dur;

-       while (startofval && (isdigit((int)*startofval))) {
+       if (startofval && (isdigit((int)*startofval))) {
                char *p;
                char modifier;
                int oneval = 0;


Can anyone tell me why the parse code starting with that "while" would
need to execute more than once?
>From what I can see the messages passed in are either a duration only or
a message that is:
validity hostname.test color blah blah

So it should only have to parse the string once - correct?