doins: use mktemp for private files, bug #484332
authorZac Medico <zmedico@gentoo.org>
Mon, 9 Sep 2013 17:10:22 +0000 (10:10 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 9 Sep 2013 17:10:22 +0000 (10:10 -0700)
bin/ebuild-helpers/doins

index bdcef4883bd83415376814ff59108beb5bddbcde..c60e057894b5ac3624a0dede9ee73ac3f0a850c3 100755 (executable)
@@ -49,7 +49,7 @@ else
        PRESERVE_SYMLINKS=n
 fi
 
-export TMP=$T/.doins_tmp
+export TMP=$(mktemp -d "${T}/.doins_tmp_XXXXXX")
 # Use separate directories to avoid potential name collisions.
 mkdir -p "$TMP"/{1,2}