bbcombotest patch

Cade Robinson cade.robinson at gmail.com
Thu Mar 4 18:39:35 CET 2010


I found that bbcombotest didn't work for hostnames starting with a
number.

My fix:  (this is on the 4.4.0 branch)

@@ -295,13 +291,10 @@

        done = 0; inp=symbolicexpr; outp=expr; symp = NULL;
        while (!done) {
-               if (isalpha((int)*inp)) {
+        if (isalpha((int)*inp) || isdigit((int) *inp) || *inp == '.') {
                        if (!insymbol) { insymbol = 1; symp = symbol; }
                        *symp = *inp; symp++;
                }
-               else if (insymbol && (isdigit((int) *inp) || (*inp ==
'.'))) {
-                       *symp = *inp; symp++;
-               }
                else if (insymbol && ((*inp == '\\') && (*(inp+1) > '
'))) {
                        *symp = *(inp+1); symp++; inp++;
                }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20100304/43e23ed0/attachment.html>


More information about the Xymon mailing list