From f1ed9c1507ccf6b8799062c46f852f1919c390d1 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 17 Jan 2010 16:07:16 +0100 Subject: [PATCH] shell: Only use ~/tmp if it's owned by the current user. --- shell/env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.44.2