summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfergus.henderson@gmail.com <fergus.henderson@gmail.com@01de4be4-8c4a-0410-9132-4925637da917>2012-04-04 17:52:31 +0000
committerfergus.henderson@gmail.com <fergus.henderson@gmail.com@01de4be4-8c4a-0410-9132-4925637da917>2012-04-04 17:52:31 +0000
commit4f56b54d0d057e1e6766f44b527f33ff71e77e94 (patch)
tree079d246b0a1267fb8b1a0f205dee729f7e519a8b
parent487f0b4bfcca23eeea0ab34ec4e5f0c0885dece2 (diff)
downloaddistcc-4f56b54d0d057e1e6766f44b527f33ff71e77e94.tar.gz
Fix for distcc issue 100 <http://code.google.com/p/distcc/issues/detail?id=100>:
change the pump script to use $TMPDIR in preference to /tmp if the TMPDIR environment variable is set. git-svn-id: http://distcc.googlecode.com/svn/trunk@756 01de4be4-8c4a-0410-9132-4925637da917
-rwxr-xr-xpump.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/pump.in b/pump.in
index acad32c..fb78194 100755
--- a/pump.in
+++ b/pump.in
@@ -181,7 +181,7 @@ redirect_io=0 # Redirect include server's I/O streams? (1 means yes.)
# $2="-d" to make a directory. The name of the created temp file or
# directory is written to stdout.
MakeTmpFile() {
- if mktemp $2 /tmp/$1.XXXXXX; then
+ if mktemp $2 "${TMPDIR-/tmp}/$1.XXXXXX"; then
: # mktemp prints the output we want; no need to do more
else
echo "$program_name: Could not make temp \"$1\"" 1>&2