aboutsummaryrefslogtreecommitdiff
path: root/bin/9l
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/9l
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/9l')
-rwxr-xr-xbin/9l2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/9l b/bin/9l
index 0e939524..032d3801 100755
--- a/bin/9l
+++ b/bin/9l
@@ -346,7 +346,7 @@ then
echo $ld -L$PLAN9/lib "$@" $libsl $extralibs $frameworks
fi
-xtmp=/tmp/9l.$$.$USER.out
+xtmp="${TMPDIR-/tmp}/9l.$$.$USER.out"
xxout() {
sed 's/.*: In function `[^:]*: *//' $xtmp | egrep . |
egrep -v 'is (often|almost always) misused|is dangerous, better use|text-based stub'