summaryrefslogtreecommitdiff
path: root/lddd.in
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-10-13 11:03:35 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-10-13 11:10:09 +0200
commita0c6bf4556e211037b9d9d6de3fd17f798a3c1fb (patch)
tree6af1bc1dd51d3a372552b2bab9be0182b0a9807c /lddd.in
parentdcb80e7b5c57b14bbab2858c6c863d8f224ba43b (diff)
downloaddevtools-a0c6bf4556e211037b9d9d6de3fd17f798a3c1fb.tar.xz
Honor TMPDIR environment variable
Replace all mktemp(1) invocations that hardcode "/tmp" with `mktemp --tmpdir` and change templates accordingly. Note that "--tmpdir" is GNU-ish which is okay given that we currently support Arch Linux only anyway. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'lddd.in')
-rw-r--r--lddd.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/lddd.in b/lddd.in
index 9695c9b..c011674 100644
--- a/lddd.in
+++ b/lddd.in
@@ -9,7 +9,7 @@ IFS="${IFS}:"
libdirs="/lib /usr/lib /usr/local/lib $(cat /etc/ld.so.conf.d/*)"
extras=
-TEMPDIR=$(mktemp -d /tmp/lddd-script.XXXX)
+TEMPDIR=$(mktemp -d --tmpdir lddd-script.XXXX)
echo 'Go out and drink some tea, this will take a while :) ...'
# Check ELF binaries in the PATH and specified dir trees.