From: mkanat%bugzilla.org <> Date: Tue, 28 Apr 2009 20:28:05 +0000 (+0000) Subject: Bug 418672: Make email_in.pl chdir to the abs_path to avoid working from /etc/smrsh... X-Git-Tag: bugzilla-3.2.4~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a0995f3e630a1c1343f20080632e3710742f2c7;p=thirdparty%2Fbugzilla.git Bug 418672: Make email_in.pl chdir to the abs_path to avoid working from /etc/smrsh with Sendmail Patch by Marques Johansson r=mkanat, a=mkanat --- diff --git a/email_in.pl b/email_in.pl index 08e1db7859..5b1e6ffe17 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);