From: Chris Lamb Date: Tue, 6 Oct 2009 22:27:19 +0000 (+0100) Subject: Reject "dcut rm" components that start with a wildcard X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b317c8242b13fedf0b6fd672cf537ad720422cc5;p=dak Reject "dcut rm" components that start with a wildcard --- diff --git a/tools/debianqueued-0.9/debianqueued b/tools/debianqueued-0.9/debianqueued index 4a071bd7..af8d70da 100755 --- a/tools/debianqueued-0.9/debianqueued +++ b/tools/debianqueued-0.9/debianqueued @@ -1211,7 +1211,9 @@ outer_loop: while () { $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(