ignore case of LB_TAGs (they are case insensitive)
authorMiloš Mulač <mulac@civ.zcu.cz>
Tue, 5 Sep 2006 14:01:31 +0000 (14:01 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Tue, 5 Sep 2006 14:01:31 +0000 (14:01 +0000)
org.glite.lb.server/src/lb_plugin.c

index 967e901..7cce2e0 100644 (file)
@@ -546,7 +546,8 @@ static int lb_query(void *fpctx,void *handle,const char *attr,glite_jp_attrval_t
 
                        while (h->events[i]) {
                                if ((h->events[i]->type == EDG_WLL_EVENT_USERTAG) &&
-                                   (strcmp(h->events[i]->userTag.name, tag) == 0) ) {
+/* XXX: LB tag names are case-insensitive */
+                                   (strcasecmp(h->events[i]->userTag.name, tag) == 0) ) {
                                        av = realloc(av, (n_tags+2) * sizeof(glite_jp_attrval_t));
                                        memset(&av[n_tags], 0, 2 * sizeof(glite_jp_attrval_t));