From 0a030a3975ce30f3f3a701e2fd6876aef254324e Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 20 Sep 2017 16:27:44 +0100 Subject: [PATCH] dot/shell-rc: Only run tmpdir(1) if we actually found it. --- dot/shell-rc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dot/shell-rc b/dot/shell-rc index da3d295..5c3c336 100644 --- a/dot/shell-rc +++ b/dot/shell-rc @@ -329,7 +329,10 @@ path_add "$HOME/bin" ## Set the temporary directory again. (A setuid or setgid program may have ## unhelpfully forgotten this for us.) -case ${TMPDIR+t} in t) ;; *) eval $(tmpdir -b) ;; esac +case ${TMPDIR+t} in + t) ;; + *) if __mdw_programp tmpdir; then eval $(tmpdir -b); fi ;; +esac ## For `root' use -- some simple molly-guards. case $(id -u) in -- 2.11.0