Commit 7b5cbdb2 authored by Simon C. Ion's avatar Simon C. Ion Committed by Alexandre Julliard

winemaker: Correctly process directories containing regexp metacharacters.

parent 519478e0
......@@ -1103,7 +1103,7 @@ sub search_from($$)
my $directory=get_directory_contents $dirname;
my $found;
foreach my $dentry (@$directory) {
if ($dentry =~ /^$component$/i or
if ($dentry =~ /^\Q$component\E$/i or
(defined $renamed and $dentry =~ /^$renamed$/i)
) {
$dirname.="$dentry/";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment