aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2024-02-06 13:57:31 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2024-04-09 16:36:07 +0200
commit1d652c22bf8c4b8cb1674719d25d79431112f25b (patch)
treef3f0618608245ee851f19a5e3d709fb7a4484250
parent9a1321b05430c4905618780a18f5d9238b556b52 (diff)
downloadtcpdump-1d652c22bf8c4b8cb1674719d25d79431112f25b.tar.gz
mkdep: Use TMPDIR if it is set and not null
(cherry picked from commit 1abe1f8c90ee8335fa1be261a0eed6ad1ac8473c) [skip ci]
-rwxr-xr-xmkdep2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkdep b/mkdep
index 2a4fc90a..a91574c2 100755
--- a/mkdep
+++ b/mkdep
@@ -68,7 +68,7 @@ if [ ! -w $MAKE ]; then
exit 1
fi
-TMP=/tmp/mkdep$$
+TMP=${TMPDIR:-/tmp}/mkdep$$
trap 'rm -f $TMP ; exit 1' 1 2 3 13 15