From 48ba8b2e2dacac451adc0b2bd8b38aae4223e1fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kou=C5=99il?= Date: Mon, 3 Aug 2009 14:06:25 +0000 Subject: [PATCH] Better detection of empty roles in FQANs (still not ideal, perhaps), fixes #48025 --- org.glite.security.proxyrenewal/src/voms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 1.8.2.3