Author: adam-guest
Date: 2008-03-17 23:03:06 +0000 (Mon, 17 Mar 2008)
New Revision: 1166

Modified:
   trunk/debian/changelog
   trunk/scripts/debdiff.pl
Log:
debdiff: Escape package names when normalising path names
  (Closes: #471282)

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2008-03-17 22:01:29 UTC (rev 1165)
+++ trunk/debian/changelog      2008-03-17 23:03:06 UTC (rev 1166)
@@ -13,6 +13,8 @@
     + Enhance quoted block detection to handle escaped quotes better
     + Enhance "shell script wrapper" detection to catch more ways of
       disguising a non shell script as one
+  * debdiff: Escape package names when normalising path names
+    (Closes: #471282)
 
  -- Adam D. Barratt <[EMAIL PROTECTED]>  Sun, 16 Mar 2008 19:40:40 +0000
 

Modified: trunk/scripts/debdiff.pl
===================================================================
--- trunk/scripts/debdiff.pl    2008-03-17 22:01:29 UTC (rev 1165)
+++ trunk/scripts/debdiff.pl    2008-03-17 23:03:06 UTC (rev 1166)
@@ -486,8 +486,8 @@
 
        # replace in first line:
        my $first = <DIFF>;
-       $first =~ s/ $dir1\/$sdir1/ $sdir1/;
-       $first =~ s/ $dir2\/$sdir2/ $sdir2/;
+       $first =~ s/ $dir1\/\Q$sdir1\E/ $sdir1/;
+       $first =~ s/ $dir2\/\Q$sdir2\E/ $sdir2/;
        print $first;
 
        while(<DIFF>) {



-- 
To unsubscribe, send mail to [EMAIL PROTECTED]

Reply via email to