~mozillateam/songbird/songbird.head

49 by Fabien Tassin
* Fix bug occuring when paths containing metacharacters make a regexp fail
1
#
2
# Ubuntu: none
3
# Upstream: bug reported
4
# Description: paths containing metacharacters make the regexp fail
5
#  and then break make-jars leading to a build failure.
6
#  Quote the path in the regexp.
7
#
8
---
9
 build-tree/songbird/tools/scripts/expand-jar-mn.pl |    2 +-
10
 1 file changed, 1 insertion(+), 1 deletion(-)
11
12
Index: songbird-1.0.0+0/build-tree/songbird/tools/scripts/expand-jar-mn.pl
13
===================================================================
14
--- songbird-1.0.0+0.orig/build-tree/songbird/tools/scripts/expand-jar-mn.pl
15
+++ songbird-1.0.0+0/build-tree/songbird/tools/scripts/expand-jar-mn.pl
16
@@ -82,17 +82,17 @@
17
 If this extension is valid, modify tools/scripts/expand-jar-mn.pl line 74.
18
 
19
 Better yet, make Ben do it.  This was his idea. 
20
 ---------------
21
 END
22
       }
23
       
24
       # Get the relative path of the file 
25
-      $file =~ s/$source_path\///;
26
+      $file =~ s/\Q$source_path\E\///;
27
  
28
       print "  $jar_destination$file       ($file)\n";
29
     }
30
   }
31
   else
32
   {
33
     # No instruction found.  Just print the line as-is. 
34
     print;