Changed files:
etc/profile.d/tmp-dir.csh -> 1.6
etc/profile.d/tmp-dir.sh -> 1.7
-if ( `/bin/id -u` >= 500 && ! -d ~/tmp ) then
+# create ~/tmp for normal users
+if ( `/bin/id -u` >= 1000 && ! -d ~/tmp ) then
mkdir -p ~/tmp >& /dev/null
chmod -f og-rwx ~/tmp >& /dev/null
endif
-setenv TMPDIR ~/tmp
+
+# if any user has ~/tmp then use it
+if ( -d ~/tmp ) then
+ setenv TMPDIR ~/tmp
+endif
-if [ $(/bin/id -u) -ge 500 -a ! -d ~/tmp ]; then
+# create ~/tmp for normal users
+if [ $(/bin/id -u) -ge 1000 -a ! -d ~/tmp ]; then
mkdir -p ~/tmp > /dev/null 2>&1
chmod -f og-rwx ~/tmp 2>/dev/null
fi
-TMPDIR=~/tmp
-export TMPDIR
+
+# if any user has ~/tmp then use it
+if [ -d ~/tmp ]; then
+ TMPDIR=~/tmp
+ export TMPDIR
+fi