summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoritz Wilhelmy <moritz+git@wzff.de>2011-09-12 00:33:38 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-09-15 21:32:19 +0200
commit0172c067dfd3c349611f3de453a8dcb389ce8688 (patch)
treea578c5b8bfea06e9a55bbecf1ef21c3051a2e7a9
parentf566cdfee7302121c43d1cd83272900d4b24cc15 (diff)
fix mktemp line
"-t" expands to $TMPDIR (or /tmp if unset), which means, the user can override in which directory temporary files are created. This works with GNU mktemp (although GNU deprecated -t) as well as BSD mktemp (does not replace X by random characters but rather appends them; this does not matter much) and busybox mktemp (which requires the number of X's to be exactly 6)
-rw-r--r--fb.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb.in b/fb.in
index d28f693..a9a54e2 100644
--- a/fb.in
+++ b/fb.in
@@ -143,7 +143,7 @@ elif [ "$COMPRESS" = "2" ]; then
require_executable xz
fi
-TMPDIR="`mktemp -d "/tmp/fb.XXXXXX"`"
+TMPDIR="`mktemp -dt "fb.XXXXXX"`"
trap "rm -rf '${TMPDIR}'" EXIT TERM
if [ "$DELETE" ] || [ "$GET" ]; then