> This patch now evaluates my machine to ALL HostRanged classes...
> Incredibly greedy pattern matching :(
Grr.
> I'll be around, when you're ready to test again.
Indeed: please test!
steve
- - -
--- item.c.orig 2007-05-14 15:08:58.000000000 -0500
+++ item.c 2007-06-25 13:52:08.402798383 -0500
@@ -1055,6 +1055,7 @@
{ struct Item *args;
char *sp, refbase[CF_MAXVARSIZE];
long cmp = -1, start = -1, end = -1;
+ char buf1[CF_BUFSIZE], buf2[CF_BUFSIZE];
strncpy(refbase,refhost,strlen(refhost));
sp = refbase + strlen(refbase) - 1;
@@ -1082,9 +1083,11 @@
return 1;
}
-if (strcmp(refbase,ToUpperStr(arg0)) != 0)
+strncpy(buf1,ToLowerStr(refbase),strlen(refbase));
+strncpy(buf2,ToLowerStr(arg0),strlen(arg0));
+if (strcmp(buf1,buf2) != 0)
{
- Debug("SRDEBUG Failed on name (%s != %s)\n",refbase,ToUpperStr(arg0));
+ Debug("SRDEBUG Failed on name (%s != %s)\n",buf1,buf2);
return 1;
}
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine