]> git.decadent.org.uk Git - dak.git/commitdiff
debianqueued: escape "." in ".changes" in regular expression
authorAnsgar Burchardt <ansgar@debian.org>
Fri, 7 Dec 2012 12:07:17 +0000 (13:07 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 7 Dec 2012 12:08:02 +0000 (13:08 +0100)
Reported-by: Jakub Wilk <jwilk@debian.org>
Reference: https://lists.debian.org/debian-dak/2012/12/msg00016.html

tools/debianqueued-0.9/debianqueued

index c19c1c3311e546305caf8f5c4e09f0befc022164..d5937abbf410989f3ce8d3672f3380301caa0b20 100755 (executable)
@@ -1325,7 +1325,7 @@ outer_loop: while (<COMMANDS>) {
       } elsif ( $conf::upload_method ne "copy" ) {
         msg( "mail,log", "cancel not available\n" );
       } elsif (
-          $word[1] !~ m,$re_file_safe_prefix.changes\z, )
+          $word[1] !~ m,$re_file_safe_prefix\.changes\z, )
       {
         msg( "mail,log",
           "argument to cancel must be one .changes filename without path\n" );