From a650e91b6e0290a6e67cd0648d86ba9e1e4a67aa Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Fri, 2 Apr 2010 13:03:27 +0800 Subject: [BUILTIN] Use TMPDIR in mkbuiltins while merging upstream dash in klibc, noticed that klibc dash had grown that useful feature. Signed-off-by: maximilian attems Signed-off-by: Herbert Xu --- ChangeLog | 4 ++++ src/mkbuiltins | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0802048..d57ebc1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-04-02 maximilian attems + + * Use TMPDIR in mkbuiltins. + 2010-03-10 Jilles Tjoelker * Fix logical or result value. 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 -- cgit 1.4.1