Skip to content

Commit

Permalink
Bug 744338: jobqueue.pl won't work if not called from the bugzilla/ r…
Browse files Browse the repository at this point in the history
…oot directory

r/a=LpSolit
  • Loading branch information
Håkan Jerning authored and LpSolit committed May 7, 2012
1 parent 3b9a39d commit 74697b9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jobqueue.pl
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@
# Max Kanat-Alexander <[email protected]>

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;
Expand Down

0 comments on commit 74697b9

Please sign in to comment.