add mmdebstrap prefix to temporary directory name

This commit is contained in:
Johannes 'josch' Schauer 2019-01-14 22:24:33 +01:00
parent 765f5b91e9
commit 58a3069495
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -1873,7 +1873,10 @@ sub main() {
if ($options->{maketar}) { if ($options->{maketar}) {
# since the output is a tarball, we create the rootfs in a temporary # since the output is a tarball, we create the rootfs in a temporary
# directory # directory
$options->{root} = tempdir(); $options->{root} = tempdir(
'mmdebstrap.XXXXXXXXXX',
DIR => File::Spec->tmpdir
);
# in unshare and root mode, other users than the current user need to # in unshare and root mode, other users than the current user need to
# access the rootfs, most prominently, the _apt user. Thus, make the # access the rootfs, most prominently, the _apt user. Thus, make the
# temporary directory world readable. # temporary directory world readable.