aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-04-28 20:28:05 +0000
committermkanat%bugzilla.org <>2009-04-28 20:28:05 +0000
commit1a0995f3e630a1c1343f20080632e3710742f2c7 (patch)
tree86e0ca7d984eb94b37639f5ebe543433232f7fb0
parentBug 483150: Fix Bugzilla JS/CSS for IE8 (diff)
downloadbugzilla-1a0995f3e630a1c1343f20080632e3710742f2c7.tar.gz
bugzilla-1a0995f3e630a1c1343f20080632e3710742f2c7.tar.bz2
bugzilla-1a0995f3e630a1c1343f20080632e3710742f2c7.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
-rw-r--r--email_in.pl7
1 files changed, 3 insertions, 4 deletions
diff --git a/email_in.pl b/email_in.pl
index 08e1db785..5b1e6ffe1 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);