From: Daniel KouĊ™il Date: Mon, 3 Aug 2009 14:06:25 +0000 (+0000) Subject: Better detection of empty roles in FQANs (still not ideal, perhaps), fixes #48025 X-Git-Tag: glite-security-proxyrenewal_R_1_3_8_1~1 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=48ba8b2e2dacac451adc0b2bd8b38aae4223e1fd;p=jra1mw.git Better detection of empty roles in FQANs (still not ideal, perhaps), fixes #48025 --- diff --git a/org.glite.security.proxyrenewal/src/voms.c b/org.glite.security.proxyrenewal/src/voms.c index e85b9e8..36accef 100644 --- a/org.glite.security.proxyrenewal/src/voms.c +++ b/org.glite.security.proxyrenewal/src/voms.c @@ -135,7 +135,8 @@ create_voms_command(glite_renewal_core_context ctx, struct vomsdata *vd, struct attribs = (*voms_cert)->std; - if (attribs[0]->role == NULL || strcmp (attribs[0]->role, "NULL") == 0 ) + if (attribs[0]->role == NULL || strcmp (attribs[0]->role, "NULL") == 0 || + strcmp(attribs[0]->role, "") == 0) ret = asprintf(command, "G%s", attribs[0]->group); else ret = asprintf(command, "B%s:%s", attribs[0]->group, attribs[0]->role);