setup: etc/profile.d/tmp-dir.csh, etc/profile.d/tmp-dir.sh - do not forcibl...

glen glen at pld-linux.org
Sun Mar 6 12:50:34 CET 2011


Author: glen                         Date: Sun Mar  6 11:50:34 2011 GMT
Module: setup                         Tag: HEAD
---- Log message:
- do not forcibly create user ~/tmp to allow clean $HOME for desktop users. besides /etc/skel provides it now

---- Files affected:
setup/etc/profile.d:
   tmp-dir.csh (1.6 -> 1.7) , tmp-dir.sh (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: setup/etc/profile.d/tmp-dir.csh
diff -u setup/etc/profile.d/tmp-dir.csh:1.6 setup/etc/profile.d/tmp-dir.csh:1.7
--- setup/etc/profile.d/tmp-dir.csh:1.6	Tue Sep  9 12:51:22 2008
+++ setup/etc/profile.d/tmp-dir.csh	Sun Mar  6 12:50:29 2011
@@ -1,9 +1,3 @@
-# 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
-
 # if any user has ~/tmp then use it
 if ( -d ~/tmp ) then
 	setenv TMPDIR ~/tmp

================================================================
Index: setup/etc/profile.d/tmp-dir.sh
diff -u setup/etc/profile.d/tmp-dir.sh:1.7 setup/etc/profile.d/tmp-dir.sh:1.8
--- setup/etc/profile.d/tmp-dir.sh:1.7	Tue Sep  9 12:51:22 2008
+++ setup/etc/profile.d/tmp-dir.sh	Sun Mar  6 12:50:29 2011
@@ -1,11 +1,4 @@
-# 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
-
 # if any user has ~/tmp then use it
 if [ -d ~/tmp ]; then
-	TMPDIR=~/tmp
-	export TMPDIR
+	export TMPDIR=~/tmp
 fi
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/setup/etc/profile.d/tmp-dir.csh?r1=1.6&r2=1.7&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/setup/etc/profile.d/tmp-dir.sh?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list