git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1295622
)
s3:nsstest: Fix a very confusing behaviour in nsstest
author
Volker Lendecke
<vl@samba.org>
Sat, 29 Aug 2009 17:39:35 +0000
(19:39 +0200)
committer
Volker 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
patch
|
blob
|
history
diff --git
a/source3/torture/nsstest.c
b/source3/torture/nsstest.c
index 352b3fa33c08b56dada14458e51aae6af6f23eee..9832a7b5ac2479a896676a2eea5ab13250fd8726 100644
(file)
--- 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]);
}