aboutsummaryrefslogtreecommitdiff
path: root/bin/9c
diff options
context:
space:
mode:
authorJason Felice <jason.m.felice@gmail.com>2019-11-11 17:06:55 -0500
committerDan Cross <crossd@gmail.com>2019-11-11 17:06:55 -0500
commit436ff26c3688198de8e8e48121296eace0b5d119 (patch)
treeac8be448065d6968b9ad47b64d3f1ea1b159f062 /bin/9c
parentb0aecb4ba5c3d7df6589c01f5a7c0427f5a75305 (diff)
downloadplan9port-436ff26c3688198de8e8e48121296eace0b5d119.tar.gz
plan9port-436ff26c3688198de8e8e48121296eace0b5d119.tar.bz2
plan9port-436ff26c3688198de8e8e48121296eace0b5d119.zip
9c, 9l: use $TMPDIR if available (#272)
NixOS sandboxed builds (at least on Mac) don't have access to /tmp, and this should be better POSIX.
Diffstat (limited to 'bin/9c')
-rwxr-xr-xbin/9c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/9c b/bin/9c
index 3ffb716c..88c47887 100755
--- a/bin/9c
+++ b/bin/9c
@@ -133,7 +133,7 @@ case "$tag" in
esac
# N.B. Must use temp file to avoid pipe; pipe loses status.
-xtmp=/tmp/9c.$$.$USER.out
+xtmp=${TMPDIR-/tmp}/9c.$$.$USER.out
$cc -DPLAN9PORT -I$PLAN9/include $cflags "$@" 2>$xtmp
status=$?
quiet $xtmp