]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - shell/env
shell: Only use ~/tmp if it's owned by the current user.
[config/dotfiles.git] / shell / env
index 3395e4beb034b84567b9182bbaa6d5608ccd5bb3..e0e2a899b1d5ef184c0878bf62d0155b13f7bc96 100644 (file)
--- 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