diff options
author | 2009-04-28 20:26:18 +0000 | |
---|---|---|
committer | 2009-04-28 20:26:18 +0000 | |
commit | 3008e800c821c1f38b16feb4180165dbe0f30a13 (patch) | |
tree | d5795be95f37b728f12fa294ff95f553dfd6b9c0 /email_in.pl | |
parent | Bug 483150: Fix Bugzilla JS/CSS for IE8 (diff) | |
download | bugzilla-3008e800c821c1f38b16feb4180165dbe0f30a13.tar.gz bugzilla-3008e800c821c1f38b16feb4180165dbe0f30a13.tar.bz2 bugzilla-3008e800c821c1f38b16feb4180165dbe0f30a13.zip |
Bug 418672: Make email_in.pl chdir to the abs_path to avoid working from /etc/smrsh with Sendmail
Patch by Marques Johansson <bugzilla@displague.com> r=mkanat, a=mkanat
Diffstat (limited to 'email_in.pl')
-rw-r--r-- | email_in.pl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/email_in.pl b/email_in.pl index 1f9a958c8..f06dd0e31 100644 --- a/email_in.pl +++ b/email_in.pl @@ -24,10 +24,9 @@ use warnings; # MTAs may call this script from any directory, but it should always # run from this one so that it can find its modules. -BEGIN { - require File::Basename; - chdir(File::Basename::dirname($0)); -} +use Cwd qw(abs_path); +use File::Basename qw(dirname); +BEGIN { chdir dirname(abs_path($0)); } use lib qw(. lib); |