summaryrefslogtreecommitdiffstats
path: root/selftest
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2015-02-03 14:59:06 +0100
committerGünther Deschner <gd@samba.org>2015-02-13 18:25:41 +0100
commit8c819f3c6b58d0138c2852c5b2d7c4dd17a54cd0 (patch)
tree1d283ad350bf8ece186da02e7ef51ba56320ba86 /selftest
parent26fc3eba769166de75aac7831fa667abe83e0a31 (diff)
downloadsamba-8c819f3c6b58d0138c2852c5b2d7c4dd17a54cd0.tar.gz
samba-8c819f3c6b58d0138c2852c5b2d7c4dd17a54cd0.tar.xz
samba-8c819f3c6b58d0138c2852c5b2d7c4dd17a54cd0.zip
s4:selftest: avoid creating two groups with GID 0 in provision
Pair-Programmed-With: Guenther Deschner <gd@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'selftest')
-rwxr-xr-xselftest/target/Samba4.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm
index 13477d7327..a58a1cf6b6 100755
--- a/selftest/target/Samba4.pm
+++ b/selftest/target/Samba4.pm
@@ -714,13 +714,14 @@ pdbtest4:x:65530:65533:pdbtest gecos:$ctx->{prefix_abs}:/bin/false
my $uid_rfc2307test = 65533;
open(GRP, ">$ctx->{nsswrap_group}");
- print GRP "
-root:x:0:
-wheel:x:10:
+ if ($ctx->{unix_gid} != 0) {
+ print GRP "root:x:0:\n";
+ }
+ print GRP "$ctx->{unix_name}:x:$ctx->{unix_gid}:\n";
+ print GRP "wheel:x:10:
users:x:100:
nobody:x:65533:
nogroup:x:65534:nobody
-$ctx->{unix_name}:x:$ctx->{unix_gid}:
";
close(GRP);
my $gid_rfc2307test = 65532;