mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Strip ./ & / from beginning of legaldirs when comparing against checked in
files. Explicitly check for "." & "/" when matching directory names. Bug #260310 r=timeless
This commit is contained in:
parent
afaefbac28
commit
84abe1403d
@ -173,7 +173,8 @@ FILE:
|
||||
$full = "$dir/$f";
|
||||
LEGALDIR:
|
||||
foreach $d (sort( grep(!/\*$/, @::LegalDirs))) {
|
||||
if ($full =~ m!^$d\b!) {
|
||||
$d =~ s@^[\.]/@@;
|
||||
if ($d eq "\." || $d eq "/" || $full =~ m!^$d\b/!) {
|
||||
$okdir = 1;
|
||||
last LEGALDIR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user