From b317c8242b13fedf0b6fd672cf537ad720422cc5 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Tue, 6 Oct 2009 23:27:19 +0100 Subject: [PATCH] Reject "dcut rm" components that start with a wildcard --- tools/debianqueued-0.9/debianqueued | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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( -- 2.39.2