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 git-svn-id: svn://10.0.0.236/trunk@257072 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
a0263c6b8b
commit
a1469b8d46
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user