summary refs log tree commit diff
path: root/src/mkbuiltins
diff options
context:
space:
mode:
Diffstat (limited to 'src/mkbuiltins')
-rw-r--r--src/mkbuiltins2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mkbuiltins b/src/mkbuiltins
index 064cb76..e38ce4c 100644
--- a/src/mkbuiltins
+++ b/src/mkbuiltins
@@ -37,7 +37,7 @@
 
 tempfile=tempfile
 if ! type tempfile > /dev/null 2>&1; then
-	tempfile='mktemp /tmp/mkbuiltins.XXXXXX'
+	tempfile="mktemp ${TMPDIR:-/tmp}/builtin.XXXXXX"
 fi
 
 trap 'rm -f $temp $temp2' EXIT