From a95955f285ea13a3feddafa75edf8d2031d39403 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 29 Aug 2009 19:39:35 +0200 Subject: [PATCH] s3:nsstest: Fix a very confusing behaviour in nsstest Testing getgrent I thought I get the offset calculations wrong whereas it was only nsstest printing stuff with spaces... --- source3/torture/nsstest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/torture/nsstest.c b/source3/torture/nsstest.c index 352b3fa33c0..9832a7b5ac2 100644 --- a/source3/torture/nsstest.c +++ b/source3/torture/nsstest.c @@ -345,7 +345,7 @@ static void print_passwd(struct passwd *pwd) static void print_group(struct group *grp) { int i; - printf("%s:%s:%lu: ", + printf("%s:%s:%lu:", grp->gr_name, grp->gr_passwd, (unsigned long)grp->gr_gid); @@ -356,7 +356,7 @@ static void print_group(struct group *grp) } for (i=0; grp->gr_mem[i+1]; i++) { - printf("%s, ", grp->gr_mem[i]); + printf("%s,", grp->gr_mem[i]); } printf("%s\n", grp->gr_mem[i]); } -- 2.34.1