From: Martin Schwenke Date: Wed, 28 Oct 2020 22:05:37 +0000 (+1100) Subject: selftest: Drop dummy environment variables for CTDB daemons X-Git-Tag: talloc-2.3.2~82 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bf010309cd747a42069cb5469ccb7711364ef18;p=thirdparty%2Fsamba.git selftest: Drop dummy environment variables for CTDB daemons This existed to avoid UID_WRAPPER_ROOT=1 causing ctdbd to fail to chown the socket. The chown is no longer done in test mode so remove this confusing hack. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs Reviewed-by: Volker Lendecke Autobuild-User(master): Amitay Isaacs Autobuild-Date(master): Mon Nov 2 10:20:45 UTC 2020 on sn-devel-184 --- diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index cfa2677a673..5623e2a149f 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -3414,20 +3414,13 @@ sub check_or_start_ctdb($$) { my $cmd = "ctdb/tests/local_daemons.sh"; my @full_cmd = ("$cmd", "$prefix", "start", "$i"); - # Dummy environment variables to avoid - # Samba3::get_env_for_process() from generating them - # and including UID_WRAPPER_ROOT=1, which causes - # "Unable to secure ctdb socket" error. - my $env_vars = { - CTDB_DUMMY => "1", - }; my $daemon_ctx = { NAME => "ctdbd", BINARY_PATH => $cmd, FULL_CMD => [ @full_cmd ], TEE_STDOUT => 1, LOG_FILE => "/dev/null", - ENV_VARS => $env_vars, + ENV_VARS => {}, }; print "STARTING CTDBD (node ${i})\n";