1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

selftest: Remove excption for NSS_WRAPPER_HOSTS and RESOLV_WRAPPER_HOSTS

These must be set correctly for each command in provision also.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Andrew Bartlett 2018-08-31 20:26:19 +12:00
parent 85ef0590a5
commit ac30d7b6c4

View File

@ -958,11 +958,7 @@ sub setup_env($$)
# variables don't leak in. Provisioning steps must explicitly set their
# necessary variables when calling out to other executables
foreach (@exported_envvars) {
unless ($_ == "NSS_WRAPPER_HOSTS" ||
$_ == "RESOLV_WRAPPER_HOSTS")
{
delete $ENV{$_};
}
delete $ENV{$_};
}
delete $ENV{SOCKET_WRAPPER_DEFAULT_IFACE};
delete $ENV{SMB_CONF_PATH};