s3:nsstest: Fix a very confusing behaviour in nsstest
authorVolker Lendecke <vl@samba.org>
Sat, 29 Aug 2009 17:39:35 +0000 (19:39 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 29 Aug 2009 17:43:33 +0000 (19:43 +0200)
Testing getgrent I thought I get the offset calculations wrong whereas
it was only nsstest printing stuff with spaces...

source3/torture/nsstest.c

index 352b3fa33c08b56dada14458e51aae6af6f23eee..9832a7b5ac2479a896676a2eea5ab13250fd8726 100644 (file)
@@ -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]);
 }