]> git.decadent.org.uk Git - dak.git/commitdiff
Reject "dcut rm" components that start with a wildcard
authorChris Lamb <lamby@debian.org>
Tue, 6 Oct 2009 22:27:19 +0000 (23:27 +0100)
committerChris Lamb <lamby@debian.org>
Tue, 6 Oct 2009 22:27:19 +0000 (23:27 +0100)
tools/debianqueued-0.9/debianqueued

index 4a071bd77383791f97d29a54d5206a3ae9a0f015..af8d70daef1a1cb14e497e350bad386234380937 100755 (executable)
@@ -1211,7 +1211,9 @@ outer_loop: while (<COMMANDS>) {
           $selecteddelayed = $1;
           s,^DELAYED/[0-9]+-day/,,;
         }
-        if ( $origword eq "--searchdirs" ) {
+        if (m,(^|/)\*,) {
+          msg("mail,log", "$_: filename component cannot start with a wildcard\n");
+        } elsif ( $origword eq "--searchdirs" ) {
           $selecteddelayed = -2;
         } elsif (m,/,) {
           msg(