diff options
author | fergus.henderson@gmail.com <fergus.henderson@gmail.com@01de4be4-8c4a-0410-9132-4925637da917> | 2012-04-04 17:52:31 +0000 |
---|---|---|
committer | fergus.henderson@gmail.com <fergus.henderson@gmail.com@01de4be4-8c4a-0410-9132-4925637da917> | 2012-04-04 17:52:31 +0000 |
commit | 4f56b54d0d057e1e6766f44b527f33ff71e77e94 (patch) | |
tree | 079d246b0a1267fb8b1a0f205dee729f7e519a8b | |
parent | 487f0b4bfcca23eeea0ab34ec4e5f0c0885dece2 (diff) | |
download | distcc-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-x | pump.in | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |