1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

selftest/Samba3: export ENVNAME

This is used by selftest/in_screen.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Stefan Metzmacher 2013-03-19 15:43:12 +01:00 committed by Michael Adam
parent c16afddeef
commit a32366e973

View File

@ -166,7 +166,9 @@ sub check_env($$)
sub setup_env($$$)
{
my ($self, $envname, $path) = @_;
$ENV{ENVNAME} = $envname;
if (defined($self->{vars}->{$envname})) {
return $self->{vars}->{$envname};
}
@ -643,6 +645,8 @@ sub check_or_start($$$$$) {
$ENV{UID_WRAPPER} = "1";
$ENV{ENVNAME} = "$ENV{ENVNAME}.nmbd";
if ($nmbd ne "yes") {
$SIG{USR1} = $SIG{ALRM} = $SIG{INT} = $SIG{QUIT} = $SIG{TERM} = sub {
my $signame = shift;
@ -693,6 +697,8 @@ sub check_or_start($$$$$) {
$ENV{UID_WRAPPER} = "1";
$ENV{ENVNAME} = "$ENV{ENVNAME}.winbindd";
if ($winbindd ne "yes") {
$SIG{USR1} = $SIG{ALRM} = $SIG{INT} = $SIG{QUIT} = $SIG{TERM} = sub {
my $signame = shift;
@ -745,6 +751,8 @@ sub check_or_start($$$$$) {
$ENV{UID_WRAPPER} = "1";
$ENV{ENVNAME} = "$ENV{ENVNAME}.smbd";
if ($smbd ne "yes") {
$SIG{USR1} = $SIG{ALRM} = $SIG{INT} = $SIG{QUIT} = $SIG{TERM} = sub {
my $signame = shift;