Bug 329295: 008filter fails if . is not in PATH - Patch by Vlad Dascalu <vladd@bugzilla.org> r=LpSolit a=myk

This commit is contained in:
lpsolit%gmail.com 2006-03-06 22:25:40 +00:00
Родитель 8830ee8078
Коммит 1321b5c0e5
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -163,6 +163,9 @@ sub directive_ok {
# Empty directives are ok; they are usually line break helpers
return 1 if $directive eq '';
# Make sure we're not looking for ./ in the $safe hash
$file =~ s#^\./##;
# Exclude those on the nofilter list
if (defined($safe{$file}{$directive})) {
$safe{$file}{$directive}++;