]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
shell/env: don't check ownership for ~/.tmp and ~/tmp
authorSimon Ruderich <simon@ruderich.org>
Fri, 20 Feb 2015 09:40:37 +0000 (10:40 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 15 Mar 2015 03:02:08 +0000 (04:02 +0100)
If they are not owned by me, something has gone very wrong. Checking
only for the sanity of ~/.tmp and ~/tmp is not enough, so just skip the
check.

shell/env

index aa36c92df244a5cd513151799f93d603a8a9b53e..ff5e6349bf6d5f8ec3a64edd0755b26771b758d9 100644 (file)
--- a/shell/env
+++ b/shell/env
@@ -82,13 +82,13 @@ export LESS_TERMCAP_so LESS_TERMCAP_se
 
 # Use ~/.tmp as directory for temporary files if available to reduce security
 # problems on multi-user systems.
-if test -O "$HOME/.tmp" && test -d "$HOME/.tmp"; then
+if test -d "$HOME/.tmp"; then
     TMP="$HOME/.tmp"
     TEMP="$TMP"
     TMPDIR="$TMP"
     export TMP TEMP TMPDIR
 # Also try ~/tmp as fallback.
-elif test -O "$HOME/tmp" && test -d "$HOME/tmp"; then
+elif test -d "$HOME/tmp"; then
     TMP="$HOME/tmp"
     TEMP="$TMP"
     TMPDIR="$TMP"