diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-02-11 14:28:32 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-12 08:44:12 -0500 |
commit | 61f4ae23334073bb989469b8c9ef168389db24b3 (patch) | |
tree | 784028f38c5803ad4e101713292f020d79a1995a | |
parent | 51572e9090d19b1f7cff8a10f70f75d7451ffdd4 (diff) | |
download | sssd-61f4ae23334073bb989469b8c9ef168389db24b3.tar.gz sssd-61f4ae23334073bb989469b8c9ef168389db24b3.tar.bz2 sssd-61f4ae23334073bb989469b8c9ef168389db24b3.zip |
sss_groupshow: separate member lists by comma
Fixes: #398
-rw-r--r-- | server/tools/sss_groupshow.c | 9 |
1 files changed, 6 insertions, 3 deletions
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"); |