start sanitizing the environment with chroot() and don't pass on TMPDIR

main
parent 6f8bb8c977
commit 84b0b5061b
Signed by untrusted user: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -1377,7 +1377,7 @@ sub setup {
# make sure that APT_CONFIG is not set when executing anything inside the
# chroot
my @chrootcmd = ('env', '--unset=APT_CONFIG');
my @chrootcmd = ('env', '--unset=APT_CONFIG', '--unset=TMPDIR');
if ($options->{mode} eq 'proot') {
push @chrootcmd, (
'proot',

Loading…
Cancel
Save