[exim-cvs] cvs commit: exim/exim-src/src exiwhat.src

Góra strony
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
Dla: exim-cvs
Temat: [exim-cvs] cvs commit: exim/exim-src/src exiwhat.src
fanf2 2008/04/21 14:13:57 BST

  Modified files:
    exim-src/src         exiwhat.src 
  Log:
  Check that $multikill_cmd exists before running it, in case
  exiwhat is configured with a command name that is generally
  correct but happens not to be installed on the system.
  Fixes: bug #701


  Revision  Changes    Path
  1.2       +1 -1      exim/exim-src/src/exiwhat.src


  Index: exiwhat.src
  ===================================================================
  RCS file: /home/cvs/exim/exim-src/src/exiwhat.src,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- exiwhat.src    7 Oct 2004 10:39:01 -0000    1.1
  +++ exiwhat.src    21 Apr 2008 13:13:57 -0000    1.2
  @@ -1,5 +1,5 @@
   #! /bin/sh
  -# $Cambridge: exim/exim-src/src/exiwhat.src,v 1.1 2004/10/07 10:39:01 ph10 Exp $
  +# $Cambridge: exim/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 @@
# 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