Commit c23d9eae authored by kestes%walrus.com's avatar kestes%walrus.com
Browse files

clean the same ENV variables that sudo does at start time.

parent 31bd7d64
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -3,8 +3,8 @@
# Utils.pm - General purpose utility functions.  Every project needs a
# kludge bucket for common access.

# $Revision: 1.20 $ 
# $Date: 2001/08/02 20:11:03 $ 
# $Revision: 1.21 $ 
# $Date: 2001/08/14 16:34:36 $ 
# $Author: kestes%walrus.com $ 
# $Source: /home/hwine/cvs_conversion/cvsroot/mozilla/webtools/tinderbox2/src/lib/Utils.pm,v $ 
# $Name:  $ 
@@ -141,6 +141,12 @@ sub set_static_vars {
  
  delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV', 'LD_PRELOAD'};

  # sudo deletes these variables as well

  delete @ENV{'KRB_CONF', 'KRB5_CONFIG'};
  delete @ENV{'LOCALDOMAIN', 'RES_OPTIONS', 'HOSTALIASES'};




  # How do we run various commands?  The TinderConfig file contains