From 20245f6002bbb3be2a6fa5b781cdb438f2e8d92a Mon Sep 17 00:00:00 2001 From: Antti-Juhani Kaijanaho Date: Tue, 6 Jan 2009 20:22:18 +0200 Subject: Fix #506138 by forbidding such messed up command lines. Signed-off-by: Antti-Juhani Kaijanaho --- grep-dctrl/grep-dctrl.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'grep-dctrl') diff --git a/grep-dctrl/grep-dctrl.c b/grep-dctrl/grep-dctrl.c index 63936be..70a1fd1 100644 --- a/grep-dctrl/grep-dctrl.c +++ b/grep-dctrl/grep-dctrl.c @@ -297,6 +297,11 @@ static void leave(struct arguments * args, int paren) static void apptok(struct arguments * args, const int tok) { debug_message("apptok", 0); + if (args->finished) { + message(L_FATAL, 0, + _("file names are not allowed within the predicate")); + fail(); + } if (args->in_atom && tok < TOK_ATOM_BASE) { finish_atom(args); } -- cgit v1.2.3