X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/0eb8eedd73556dbf5bb59ee7ebaed5fee282afc1..0a49a7a4f1090b6f1ce1d0f9d969804c9226b53e:/src/src/exim_checkaccess.src diff --git a/src/src/exim_checkaccess.src b/src/src/exim_checkaccess.src index 8169243bf..2cccbb5b5 100755 --- a/src/src/exim_checkaccess.src +++ b/src/src/exim_checkaccess.src @@ -1,7 +1,7 @@ #! /bin/sh -# $Cambridge: exim/src/src/exim_checkaccess.src,v 1.1 2004/10/07 10:39:01 ph10 Exp $ +# $Cambridge: exim/src/src/exim_checkaccess.src,v 1.2 2009/11/16 19:50:36 nm4 Exp $ -# Copyright (c) 2002 University of Cambridge. +# Copyright (c) University of Cambridge, 1995 - 2007 # See the file NOTICE for conditions of use and distribution. # Except when they appear in comments, the following placeholders in this @@ -52,8 +52,7 @@ done # a nasty tendency to get lost in the past. Use a variable to hold a space and # a tab to keep the tab in one place. -st=' ' -exim_path=`grep "^[$st]*exim_path" $config | sed "s/.*=[$st]*//"` +exim_path=`perl -ne 'chop;if (/^\s*exim_path\s*=\s*(.*)/){print "$1\n";last;}' $config` if test "$exim_path" = ""; then exim_path=BIN_DIRECTORY/exim; fi