From: Miloš Mulač Date: Tue, 5 Sep 2006 14:01:31 +0000 (+0000) Subject: ignore case of LB_TAGs (they are case insensitive) X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=45d6900a49cb9715a7803a496600520a2b6bf5e4;p=jra1mw.git ignore case of LB_TAGs (they are case insensitive) --- diff --git a/org.glite.lb.server/src/lb_plugin.c b/org.glite.lb.server/src/lb_plugin.c index 967e901..7cce2e0 100644 --- a/org.glite.lb.server/src/lb_plugin.c +++ b/org.glite.lb.server/src/lb_plugin.c @@ -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));