diff options
author | ben <ben@pkgsrc.org> | 2006-01-01 18:59:04 +0000 |
---|---|---|
committer | ben <ben@pkgsrc.org> | 2006-01-01 18:59:04 +0000 |
commit | d17c0a2caa8a1ee6be0d207c365350996a1f11cc (patch) | |
tree | 3cd4b9688666955038486ef1c6853bb9b8899527 /mail | |
parent | faf65456ad2318c11b72f18a1b9cbdba567320a4 (diff) | |
download | pkgsrc-d17c0a2caa8a1ee6be0d207c365350996a1f11cc.tar.gz |
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.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/msmtp/distinfo | 3 | ||||
-rw-r--r-- | mail/msmtp/patches/patch-ab | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/mail/msmtp/distinfo b/mail/msmtp/distinfo index bcd402dcd90..a7de6ee494c 100644 --- a/mail/msmtp/distinfo +++ b/mail/msmtp/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.10 2006/01/01 17:02:21 ben Exp $ +$NetBSD: distinfo,v 1.11 2006/01/01 18:59:04 ben Exp $ SHA1 (msmtp-1.4.4.tar.bz2) = 2b8437bb613a4054f51e94f4a6a4784b2abe3458 RMD160 (msmtp-1.4.4.tar.bz2) = c83018a31815e031cd1b34bceb71862fb7a5399f Size (msmtp-1.4.4.tar.bz2) = 480904 bytes SHA1 (patch-aa) = bd0cb9fe4282b6a8193b38c883d7f7b1b46cd222 +SHA1 (patch-ab) = edabddfcc3f904b5519dfa339c219b55b067168b 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; + } |