Simon C. Ion : winemaker: Correctly process directories containing regexp metacharacters.

Alexandre Julliard julliard at winehq.org
Sat Dec 20 06:35:07 CST 2008


Module: wine
Branch: master
Commit: 7b5cbdb261477461c2527d344dfbb47f7094530a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7b5cbdb261477461c2527d344dfbb47f7094530a

Author: Simon C. Ion <ion.simon.c at gmail.com>
Date:   Fri Dec 19 18:23:45 2008 -0600

winemaker: Correctly process directories containing regexp metacharacters.

---

 tools/winemaker |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/winemaker b/tools/winemaker
index b70e08d..918cd2a 100755
--- a/tools/winemaker
+++ b/tools/winemaker
@@ -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/";




More information about the wine-cvs mailing list