From c60d099af199808d6a3eb4289b5b9a5fec4f36be Mon Sep 17 00:00:00 2001 From: Moritz Wilhelmy Date: Mon, 12 Sep 2011 00:33:38 +0200 Subject: 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) --- fb.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fb.in b/fb.in index cf71057..7d9cf8b 100644 --- a/fb.in +++ b/fb.in @@ -144,7 +144,7 @@ done shift `expr $OPTIND - 1` -TMPDIR="`mktemp -d "/tmp/fb.XXXXXX"`" +TMPDIR="`mktemp -dt "fb.XXXXXX"`" trap "rm -rf '${TMPDIR}'" EXIT TERM if [ $# -eq 0 ]; then -- cgit v1.2.3-24-g4f1b