From 61f4ae23334073bb989469b8c9ef168389db24b3 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 11 Feb 2010 14:28:32 +0100 Subject: sss_groupshow: separate member lists by comma Fixes: #398 --- server/tools/sss_groupshow.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'server/tools') diff --git a/server/tools/sss_groupshow.c b/server/tools/sss_groupshow.c index 4d1c7937..2f848b7d 100644 --- a/server/tools/sss_groupshow.c +++ b/server/tools/sss_groupshow.c @@ -757,13 +757,15 @@ static void print_group_info(struct group_info *g, int level) printf(_("%sMember users: "), padding); if (g->user_members) { for (i=0; g->user_members[i]; ++i) { - printf("%s:", g->user_members[i]); + printf("%s%s", i>0 ? "," : "", + g->user_members[i]); } } printf(_("\n%sIs a member of: "), padding); if (g->memberofs) { for (i=0; g->memberofs[i]; ++i) { - printf("%s:", g->memberofs[i]); + printf("%s%s", i>0 ? "," : "", + g->memberofs[i]); } } printf(_("\n%sMember groups: "), padding); @@ -928,7 +930,8 @@ int main(int argc, const char **argv) } else { if (state->root->group_members) { for (i=0; state->root->group_members[i]; ++i) { - printf("%s:", state->root->group_members[i]->name); + printf("%s%s", i>0 ? "," : "", + state->root->group_members[i]->name); } } printf("\n"); -- cgit