mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Fix selfetet environment user gid
The real invoking user's gid should be in the /etc/group file or it may cause spurious error messages. Signed-off-by: Simo Sorce <idra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Simo Sorce <idra@samba.org> Autobuild-Date(master): Tue May 13 15:33:21 CEST 2014 on sn-devel-104
This commit is contained in:
parent
c1507bc101
commit
3f60f0e36b
3
selftest/target/Samba4.pm
Normal file → Executable file
3
selftest/target/Samba4.pm
Normal file → Executable file
@ -511,6 +511,8 @@ sub provision_raw_prepare($$$$$$$$$$)
|
|||||||
chomp $unix_name;
|
chomp $unix_name;
|
||||||
$ctx->{unix_name} = $unix_name;
|
$ctx->{unix_name} = $unix_name;
|
||||||
$ctx->{unix_uid} = $>;
|
$ctx->{unix_uid} = $>;
|
||||||
|
my @mygid = split(" ", $();
|
||||||
|
$ctx->{unix_gid} = $mygid[0];
|
||||||
$ctx->{unix_gids_str} = $);
|
$ctx->{unix_gids_str} = $);
|
||||||
@{$ctx->{unix_gids}} = split(" ", $ctx->{unix_gids_str});
|
@{$ctx->{unix_gids}} = split(" ", $ctx->{unix_gids_str});
|
||||||
|
|
||||||
@ -688,6 +690,7 @@ wheel:x:10:
|
|||||||
users:x:100:
|
users:x:100:
|
||||||
nobody:x:65533:
|
nobody:x:65533:
|
||||||
nogroup:x:65534:nobody
|
nogroup:x:65534:nobody
|
||||||
|
$ctx->{unix_name}:x:$ctx->{unix_gid}:
|
||||||
";
|
";
|
||||||
close(GRP);
|
close(GRP);
|
||||||
my $gid_rfc2307test = 65532;
|
my $gid_rfc2307test = 65532;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user