summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-05-30 02:25:11 +0200
committerGünther Deschner <gd@samba.org>2009-05-30 09:43:28 +0200
commitdf167ee7712a9c92fcb6ca1541dc4d1e5d93da02 (patch)
treed4f272f597c548adf0773c10fcf9c2a890c833c9
parentbb9103d9c4cb9d68c36f278ea31be9b8a12063b9 (diff)
downloadsamba-df167ee7712a9c92fcb6ca1541dc4d1e5d93da02.tar.gz
samba-df167ee7712a9c92fcb6ca1541dc4d1e5d93da02.tar.bz2
samba-df167ee7712a9c92fcb6ca1541dc4d1e5d93da02.zip
s3-selftest: Fix invalid /etc/group file used with nss_wrapper.
Found by torture test. Guenther
-rw-r--r--selftest/target/Samba3.pm1
-rwxr-xr-xsource3/script/tests/selftest.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index 95d2a8253f..4723fd6909 100644
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -542,6 +542,7 @@ $unix_name:x:$unix_uid:$unix_gids[0]:$unix_name gecos:$prefix_abs:/bin/false
open(GROUP, ">$nss_wrapper_group") or die("Unable to open $nss_wrapper_group");
print GROUP "nobody:x:65533:
nogroup:x:65534:nobody
+root:x:65532:
$unix_name-group:x:$unix_gids[0]:
";
close(GROUP);
diff --git a/source3/script/tests/selftest.sh b/source3/script/tests/selftest.sh
index 956c5af77b..e3871132d2 100755
--- a/source3/script/tests/selftest.sh
+++ b/source3/script/tests/selftest.sh
@@ -289,6 +289,7 @@ EOF
cat >$NSS_WRAPPER_GROUP<<EOF
nobody:x:65533:
nogroup:x:65534:nobody
+root:x:65532:
$USERNAME-group:x:$GROUPID:
EOF