]> git.pld-linux.org Git - packages/setup.git/commitdiff
- don't assume special users want ~/tmp
authorankry <ankry@pld-linux.org>
Sun, 13 Jun 2004 20:15:04 +0000 (20:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- chmod -f is *NOT* really silent now...

Changed files:
    setup-special_users.patch -> 1.1

setup-special_users.patch [new file with mode: 0644]

diff --git a/setup-special_users.patch b/setup-special_users.patch
new file mode 100644 (file)
index 0000000..551e7cd
--- /dev/null
@@ -0,0 +1,18 @@
+--- setup-2.4.6/etc/profile.d/tmp-dir.csh~     Sun Jun 13 22:15:53 2004
++++ setup-2.4.6/etc/profile.d/tmp-dir.csh      Sun Jun 13 22:15:53 2004
+@@ -1,4 +1,4 @@
+-if ( ! -d ~/tmp ) then
++if ( `/bin/id -u` >= 500 && ! -d ~/tmp ) then
+       mkdir -p ~/tmp >& /dev/null
+-      chmod -f og-rwx ~/tmp
++      chmod -f og-rwx ~/tmp >& /dev/null
+ endif
+--- setup-2.4.6/etc/profile.d/tmp-dir.sh~      Sun Jun 13 22:15:53 2004
++++ setup-2.4.6/etc/profile.d/tmp-dir.sh       Sun Jun 13 22:15:53 2004
+@@ -1,4 +1,4 @@
+-if [ ! -d ~/tmp ]; then
++if [ $(/bin/id -u) -ge 500 -a ! -d ~/tmp ]; then
+       mkdir -p ~/tmp > /dev/null 2>&1
+-      chmod -f og-rwx ~/tmp
++      chmod -f og-rwx ~/tmp 2>/dev/null
+ fi
This page took 0.039758 seconds and 4 git commands to generate.