From 093067fe8bd6e6b16a6649f4c8f9a597277bb4a2 Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 1 Jan 2006 18:59:04 +0000 Subject: The msmtp manual states that it uses the same exit codes as sendmail. Most of these exit codes are defined in gnulib/sysexit_.h EX_OK is defined as 0 in src/msmtp.c if it wasn't already defined. The variable error_code is assigned these exit values, and returned at the end of main(). On Interix, EX_OK is defined in unistd.h: #define EX_OK 0x8001 /* test for regular executable */ patch-ab changes the logic so that when error_code == EX_OK, the exit code is 0 instead of EX_OK. This should work everywhere. --- mail/msmtp/patches/patch-ab | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 mail/msmtp/patches/patch-ab (limited to 'mail/msmtp/patches') diff --git a/mail/msmtp/patches/patch-ab b/mail/msmtp/patches/patch-ab new file mode 100644 index 00000000000..b59dcc9924b --- /dev/null +++ b/mail/msmtp/patches/patch-ab @@ -0,0 +1,11 @@ +$NetBSD: patch-ab,v 1.1 2006/01/01 18:59:04 ben Exp $ + +--- src/msmtp.c.orig Sun Aug 14 13:13:02 2005 ++++ src/msmtp.c +@@ -3382,5 +3382,5 @@ exit: + list_xfree(errmsg, free); + } + +- return error_code; ++ return (error_code == EX_OK) ? 0 : error_code; + } -- cgit v1.2.3