From 436ff26c3688198de8e8e48121296eace0b5d119 Mon Sep 17 00:00:00 2001 From: Jason Felice Date: Mon, 11 Nov 2019 17:06:55 -0500 Subject: 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. --- bin/9c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/9c') 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 -- cgit v1.2.3