From 58a3069495cb34745f34b1ddb25bccd166415e62 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Mon, 14 Jan 2019 22:24:33 +0100 Subject: [PATCH] add mmdebstrap prefix to temporary directory name --- mmdebstrap | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index 3822b88..3656695 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -1873,7 +1873,10 @@ sub main() { if ($options->{maketar}) { # since the output is a tarball, we create the rootfs in a temporary # 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 # access the rootfs, most prominently, the _apt user. Thus, make the # temporary directory world readable.