From 9603212383aaaf1bf55c9b54713e424f08758a9e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 29 Mar 2007 22:38:48 +0000 Subject: [PATCH] * znew.in (tmp): Use $TMPDIR as temp directory, if given. Suggested by Juan Manuel Guerrero. --- ChangeLog | 5 +++++ znew.in | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7f77590..c65cb9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-29 Paul Eggert (tiny change) + + * znew.in (tmp): Use $TMPDIR as temp directory, if given. + Suggested by Juan Manuel Guerrero. + 2007-03-19 Paul Eggert * README-hacking: New file, renamed from README-cvs. diff --git a/znew.in b/znew.in index 503521c..97faa04 100644 --- a/znew.in +++ b/znew.in @@ -55,7 +55,7 @@ block=1024 # block is the disk block size (best guess, need not be exact) warn="(does not preserve modes and timestamp)" -tmp=/tmp/zfoo.$$ +tmp=${TMPDIR-/tmp}/zfoo.$$ set -C echo hi > $tmp || exit if test -z "`(${CPMOD-cpmod} $tmp $tmp) 2>&1`"; then -- 2.47.2