Commit 3008e800 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

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
parent 1759f3e7
...@@ -24,10 +24,9 @@ use warnings; ...@@ -24,10 +24,9 @@ use warnings;
# MTAs may call this script from any directory, but it should always # MTAs may call this script from any directory, but it should always
# run from this one so that it can find its modules. # run from this one so that it can find its modules.
BEGIN { use Cwd qw(abs_path);
require File::Basename; use File::Basename qw(dirname);
chdir(File::Basename::dirname($0)); BEGIN { chdir dirname(abs_path($0)); }
}
use lib qw(. lib); use lib qw(. lib);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment