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

This commit is contained in:
kestes%walrus.com 2001-08-14 16:34:36 +00:00
Родитель 31bd7d64a7
Коммит c23d9eae3a
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -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