diff options
author | Nigel Metheringham <nigel@exim.org> | 2009-01-02 16:58:05 +0000 |
---|---|---|
committer | Nigel Metheringham <nigel@exim.org> | 2009-01-02 16:58:05 +0000 |
commit | 447de4b05520fb2c652ddb8958ba149da32102e2 (patch) | |
tree | 960dc565e8ef4a2ae69dd864579b1b2f60e06380 /src | |
parent | 3ac82526e93764d2e67838d4b3a0e7ee83b1aad7 (diff) |
Fixed behaviour of exiwhat when no config. Fixes: #497
Diffstat (limited to 'src')
-rw-r--r-- | src/src/exiwhat.src | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/src/exiwhat.src b/src/src/exiwhat.src index 4905aa44c..c5bb312bb 100644 --- a/src/src/exiwhat.src +++ b/src/src/exiwhat.src @@ -1,5 +1,5 @@ #! /bin/sh -# $Cambridge: exim/src/src/exiwhat.src,v 1.2 2008/04/21 13:13:57 fanf2 Exp $ +# $Cambridge: exim/src/src/exiwhat.src,v 1.3 2009/01/02 16:58:05 nm4 Exp $ # Copyright (c) 2003 University of Cambridge. # See the file NOTICE for conditions of use and distribution. @@ -75,6 +75,12 @@ while [ "$config" = "" -a $# -gt 0 ] ; do shift done +# check we have a config file +if [ "$config" = "" -o ! -f "$config" ]; then + echo Config file not found. + exit 1 +fi + # Determine where the spool directory is. Search for an exim_path setting # in the configure file; otherwise use the bin directory. Call that version of # Exim to find the spool directory. BEWARE: a tab character is needed in the |