log_subcmds is breaking shebangs · Issue #194 · sudo-project/sudo (original) (raw)

I think there is still an issue with log_subcmds:

I'm following the following tutorial: https://soapbox.pub/install/.

When trying to install Erlang by executing the following inside the sudo session (sudo -Hu pleroma bash):

git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.0
echo ". $HOME/.asdf/asdf.sh" >> ~/.bashrc
echo ". $HOME/.asdf/completions/asdf.bash" >> ~/.bashrc
exec bash
asdf plugin-add erlang
asdf plugin-add elixir
asdf install

When log_subcmds is enabled, the last step fails with:

Configure failed.
/var/lib/pleroma/.asdf/plugins/erlang/kerl: 926: ./otp_build: not found

When I comment it out, the installation succeeds:

Erlang/OTP 24.3.4.2 (asdf_24.3.4.2) has been successfully built

I couldn't work out a smaller example, but the only changing factor here is whether log_subcmds is enabled.
Sudo version: 1.9.12p2