summaryrefslogtreecommitdiff
path: root/fml/libexec
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-11-25 14:14:08 +0000
committerfukachan <fukachan>2001-11-25 14:14:08 +0000
commitaf388b0ca43fdc85bde367007676e12bb3c31b8c (patch)
tree54697e3de379d640d2f6241e58dcfcaeb8984423 /fml/libexec
parent7c724645a73f51cf022b1ebecd09ba64e8febb05 (diff)
downloadfml8-af388b0ca43fdc85bde367007676e12bb3c31b8c.tar.gz
fml8-af388b0ca43fdc85bde367007676e12bb3c31b8c.tar.bz2
fml8-af388b0ca43fdc85bde367007676e12bb3c31b8c.zip
reset PATH in the early stage
Diffstat (limited to 'fml/libexec')
-rwxr-xr-xfml/libexec/loader.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/fml/libexec/loader.in b/fml/libexec/loader.in
index 9656e524..5d84ff14 100755
--- a/fml/libexec/loader.in
+++ b/fml/libexec/loader.in
@@ -4,7 +4,7 @@
# Copyright (C) 2000-2001 Ken'ichi Fukamachi
# All rights reserved.
#
-# $FML: loader.in,v 1.2 2001/11/12 15:53:41 fukachan Exp $
+# $FML: loader.in,v 1.3 2001/11/25 11:41:05 fukachan Exp $
#
eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}'
@@ -14,6 +14,10 @@ use vars qw($ConfDir $MainCF $running_under_some_shell);
use strict;
use Carp;
+# reset PATH in the early stage
+$ENV{'PATH'} = '/bin:/usr/bin';
+delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};
+
# main configuration file for directory switch
{
my $prefix = "@prefix@";