From 45d6900a49cb9715a7803a496600520a2b6bf5e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Tue, 5 Sep 2006 14:01:31 +0000 Subject: [PATCH] ignore case of LB_TAGs (they are case insensitive) --- org.glite.lb.server/src/lb_plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- 1.8.2.3