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 <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Mon Nov 2 10:20:45 UTC 2020 on sn-devel-184
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";