Check that $multikill_cmd exists before running it, in case
authorTony Finch <dot@dot.at>
Mon, 21 Apr 2008 13:13:57 +0000 (13:13 +0000)
committerTony Finch <dot@dot.at>
Mon, 21 Apr 2008 13:13:57 +0000 (13:13 +0000)
exiwhat is configured with a command name that is generally
correct but happens not to be installed on the system.
Fixes: bug #701
src/src/exiwhat.src

index 77d7f16b96cde4bb80432f8cf56a114c2b2633c0..4905aa44cb4f82b7e3d13ee4eb846100fe107b12 100644 (file)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# $Cambridge: exim/src/src/exiwhat.src,v 1.1 2004/10/07 10:39:01 ph10 Exp $
+# $Cambridge: exim/src/src/exiwhat.src,v 1.2 2008/04/21 13:13:57 fanf2 Exp $
 
 # Copyright (c) 2003 University of Cambridge.
 # See the file NOTICE for conditions of use and distribution.
@@ -109,7 +109,7 @@ fi
 # Solaris, "killall" kills ALL processes - this is the System V version of this
 # command, and not what we want!
 
-if [ "$multikill_cmd" != "" ] ; then
+if [ "$multikill_cmd" != "" ] && type "$multikill_cmd" >/dev/null 2>&1; then
   $multikill_cmd $signal "$multikill_arg"
 
 # No multikill command; do it the hard way