]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- Remove "HOME" from environment.
authormkochano <mkochano@pld-linux.org>
Sun, 22 Oct 2000 19:30:18 +0000 (19:30 +0000)
committermkochano <mkochano@pld-linux.org>
Sun, 22 Oct 2000 19:30:18 +0000 (19:30 +0000)
- Set TMPDIR and TEMP to "/tmp". Some programs (Samba, cvs) will fail beacuse
  of lack of access permissions to "/root/tmp" or lack of this directory if
  these variables are inherited from root's environment.

svn-id: @807

rc.d/init.d/functions

index b8deb081fa0b8629535e8000bb01e051d379f791..074498d280d805997a2c413c957cc128c6c16384 100644 (file)
@@ -1,7 +1,7 @@
 # functions    This file contains functions to be used by most or all
 #              shell scripts in the /etc/init.d directory.
 #
-# $Id: functions,v 1.57 2000/09/19 12:46:45 saq Exp $
+# $Id: functions,v 1.58 2000/10/22 19:30:18 mkochano Exp $
 #
 # Author:      Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
 # Hacked by:    Greg Galloway and Marc Ewing
 # First set up a default search path.
 export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
 
+# Make environment saner.
+unset HOME
+TMPDIR=/tmp
+TEMP=/tmp
+
 # Set defaults
 INIT_COL=67
 
This page took 0.044545 seconds and 4 git commands to generate.