From: Simon Ruderich Date: Sun, 17 Jan 2010 15:07:16 +0000 (+0100) Subject: shell: Only use ~/tmp if it's owned by the current user. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=f1ed9c1507ccf6b8799062c46f852f1919c390d1;p=config%2Fdotfiles.git shell: Only use ~/tmp if it's owned by the current user. --- diff --git a/shell/env b/shell/env index 3395e4b..e0e2a89 100644 --- a/shell/env +++ b/shell/env @@ -34,7 +34,7 @@ export PAGER # Use ~/tmp as directory for temporary files if available to reduce security # problems on multi-user systems. -if [ -d ~/tmp ]; then +if [ -O ~/tmp -a -d ~/tmp ]; then TMP=~/tmp TMPDIR=$TMP export TMP TMPDIR