#! /bin/sh -e ## 80_warn_on_stop.dpatch (Ian Wienand) ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: warn when list processing stops if [ $# -ne 1 ]; then echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 fi case "$1" in -patch) patch -f --no-backup-if-mismatch -p1 < $0;; -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;; *) echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1;; esac exit 0 @DPATCH@ diff -ur exim4-4.52/src/match.c ./exim4-4.52-new/src/match.c --- exim4-4.52/src/match.c 2005-07-01 21:09:15.000000000 +1000 +++ ./exim4-4.52-new/src/match.c 2005-09-02 14:41:27.000000000 +1000 @@ -712,7 +712,11 @@ { HDEBUG(D_lists) debug_printf("%s %s (%s)\n", ot, include_unknown? "yes":"no", error); - if (!include_unknown) return FAIL; + if (!include_unknown) + { + log_write(0, LOG_MAIN, "%s: list processing stopped", error); + return FAIL; + } log_write(0, LOG_MAIN, "%s: accepted by +include_unknown", error); return OK; } @@ -803,7 +807,11 @@ HDEBUG(D_lists) debug_printf("%s %s (%s)\n", ot, include_unknown? "yes":"no", error); (void)fclose(f); - if (!include_unknown) return FAIL; + if (!include_unknown) + { + log_write(0, LOG_MAIN, "%s: list processing stopped", error); + return FAIL; + } log_write(0, LOG_MAIN, "%s: accepted by +include_unknown", error); return OK; }