From 6147ca54a454838e00dfa108db5b13ec10b9aa2f Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 25 Jul 2002 07:45:01 +0000 Subject: Do some minimalistic validation of command-lines (ie, make sure it isn't 2002-07-25 Jeffrey Stedfast * filter-file.c (validate): Do some minimalistic validation of command-lines (ie, make sure it isn't an empty string). * filtertypes.xml: s/shell-exec/shell/ (for the action) and pass "/bin/sh" "-c" as the first 2 arguments. For the shell-exec *rule*, change the name to "pipe-message" and add the "/bin/sh" "-c" arguments too. svn path=/trunk/; revision=17584 --- filter/filtertypes.xml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'filter/filtertypes.xml') diff --git a/filter/filtertypes.xml b/filter/filtertypes.xml index 7c0690cfa0..67b7f9a6d3 100644 --- a/filter/filtertypes.xml +++ b/filter/filtertypes.xml @@ -581,32 +581,32 @@ - - Command + + Pipe Message to Shell Command @@ -682,9 +682,9 @@ (play-sound ${sound}) - - Execute Shell Command - (shell-exec ${command}) + + Shell Command + (shell "/bin/sh" "-c" ${command}) -- cgit v1.2.3