Bug 744338: jobqueue.pl won't work if not called from the bugzilla/ root directory

r/a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@263792 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org 2012-05-07 19:16:06 +00:00
parent 0d7d1aac34
commit b87849403a
2 changed files with 8 additions and 2 deletions

View File

@ -1 +1 @@
8219
8220

View File

@ -7,8 +7,14 @@
# defined by the Mozilla Public License, v. 2.0.
use strict;
use Cwd qw(abs_path);
use File::Basename;
BEGIN { chdir dirname($0); }
BEGIN {
# Untaint the abs_path.
my ($a) = abs_path($0) =~ /^(.*)$/;
chdir dirname($a);
}
use lib qw(. lib);
use Bugzilla;