[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
purple hosts - SOLVED.
- To: hobbit (at) hswn.dk
- Subject: purple hosts - SOLVED.
- From: Cade Robinson <cade.robinson (at) gmail.com>
- Date: Tue, 16 Feb 2010 13:09:18 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=eg80gbty4ocm9gVVaOJjC4FfWrZB4R30ZDSRHRh8h/4=; b=pIzqs0LGL4OazkplL8CwSeMm6XxBd5weG12AkjWf5G2H9/a1E1uUPJOZNpxVXxaLSs 3UQDvjhKHc8a+P/sbyB2gF95a6snnkIS1UxTm0xGpGDJloVXfyuucOGhL1TdGzsjTXA6 CySVZ/slVi4R+EfWwYBdNfPA8H94qFpgzuSaY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=sN3LtrFoCLJgEhZ7728dwa89ke5vj91QBTaCzPSts9x57Z+AyW+mTCqUOgo4bjUMBN 8QX3RTS4/0/6CrPCY+6I00aFlyTx8pMRZi3BmM2Zc/C7HYBGFWGJVaBivV8uc+OESSMb yh/fIPUVi6FktJCMlMzOsRnOcccbcG/3/Tk+k=
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?