Author: adam-guest
Date: 2008-04-08 20:54:15 +0000 (Tue, 08 Apr 2008)
New Revision: 1318

Modified:
   trunk/debian/changelog
   trunk/scripts/debdiff.pl
Log:
debdiff: Ensure arguments to --exclude are properly quoted in case they
contain shell meta-characters (Closes: #475075)

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2008-04-08 17:20:05 UTC (rev 1317)
+++ trunk/debian/changelog      2008-04-08 20:54:15 UTC (rev 1318)
@@ -10,6 +10,8 @@
       (greater than 1.8, less than 1.7 or non-numeric)
     + Use a case-insensitive search for field names
   * debchange: Escape arguments to --local (Closes: #475034)
+  * debdiff: Ensure arguments to --exclude are properly quoted in case they
+    contain shell meta-characters (Closes: #475075)
 
   [ James Vega ]
   * debian/control: Set subversion as the first VCS Recommends alternative.

Modified: trunk/scripts/debdiff.pl
===================================================================
--- trunk/scripts/debdiff.pl    2008-04-08 17:20:05 UTC (rev 1317)
+++ trunk/scripts/debdiff.pl    2008-04-08 20:54:15 UTC (rev 1318)
@@ -513,7 +513,7 @@
 
        my @command = ("diff", "-Nru", @diff_opts);
        for my $exclude (@excludes) {
-           push @command, ("--exclude", $exclude);
+           push @command, ("--exclude", "'$exclude'");
        }
        push @command, ("$dir1/$sdir1", "$dir2/$sdir2");
        push @command, (">", $filename);



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

Reply via email to