pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/distribute PR/18422: pkgsrc/mail/distribute: writ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/afbaf5030c44
branches: trunk
changeset: 351120:afbaf5030c44
user: maya <maya%pkgsrc.org@localhost>
date: Mon Aug 15 11:30:31 2016 +0000
description:
PR/18422: pkgsrc/mail/distribute: write_index() is called too early.
Only call write_index() after calculating bodysum, otherwise it uses
the initial value of 0.
While I have not tested this patch myself, the need for it is clear.
Patching in pkgsrc as this package does not have an upstream.
Bump PKGREVISION.
diffstat:
mail/distribute/Makefile | 4 ++--
mail/distribute/distinfo | 4 ++--
mail/distribute/patches/patch-ac | 36 ++++++++++++++++++++++++++++++++++--
3 files changed, 38 insertions(+), 6 deletions(-)
diffs (78 lines):
diff -r 87ce97dac0c7 -r afbaf5030c44 mail/distribute/Makefile
--- a/mail/distribute/Makefile Mon Aug 15 10:52:09 2016 +0000
+++ b/mail/distribute/Makefile Mon Aug 15 11:30:31 2016 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.30 2016/07/09 06:38:28 wiz Exp $
+# $NetBSD: Makefile,v 1.31 2016/08/15 11:30:31 maya Exp $
DISTNAME= distribute-2.1-pl19
PKGNAME= distribute-2.1.26
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= mail
MASTER_SITES= ftp://ftp.foretune.co.jp/pub/network/mail/distribute/
# AWOL
diff -r 87ce97dac0c7 -r afbaf5030c44 mail/distribute/distinfo
--- a/mail/distribute/distinfo Mon Aug 15 10:52:09 2016 +0000
+++ b/mail/distribute/distinfo Mon Aug 15 11:30:31 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2015/11/03 23:27:03 agc Exp $
+$NetBSD: distinfo,v 1.8 2016/08/15 11:30:31 maya Exp $
SHA1 (distribute/distribute-2.1-pl19.tar.gz) = f33f63d42d0233eceec759dc0378a914087c0344
RMD160 (distribute/distribute-2.1-pl19.tar.gz) = 5ffb23682176a86291eb5374ea98c9c5d002947d
@@ -34,5 +34,5 @@
Size (distribute/patch.26e.gz) = 12560 bytes
SHA1 (patch-aa) = 6c23421d76b166acffc782271f37e405b45617ed
SHA1 (patch-ab) = 4c07a6ae9bb1e9dacd33db96624d2c2fefbb9240
-SHA1 (patch-ac) = 75a3956d6e7b53473eb0a3ad62b4ce261ccc8bf6
+SHA1 (patch-ac) = 91b8eccec33c2de27a36b5174f473aface388965
SHA1 (patch-tmpl2c.pl) = 5cdf21381f98df64b37609173e35448427edf231
diff -r 87ce97dac0c7 -r afbaf5030c44 mail/distribute/patches/patch-ac
--- a/mail/distribute/patches/patch-ac Mon Aug 15 10:52:09 2016 +0000
+++ b/mail/distribute/patches/patch-ac Mon Aug 15 11:30:31 2016 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ac,v 1.4 2006/01/08 15:44:06 joerg Exp $
+$NetBSD: patch-ac,v 1.5 2016/08/15 11:30:31 maya Exp $
---- distribute.c.orig 2006-01-08 15:39:24.000000000 +0000
+--- distribute.c.orig 2016-08-15 10:57:27.530046718 +0000
+++ distribute.c
@@ -49,7 +49,8 @@
#define index strchr
@@ -12,3 +12,35 @@
# include <paths.h> /* for sendmail path */
#endif
+@@ -1541,15 +1542,6 @@ send_message()
+ */
+ putc('\n', pipe);
+
+- /* If message have not reject, then write index here. (since we
+- * have subject information here! -- We assume here that sendmail
+- * will not fork shell(in this case, archive) before closing pipe.
+- * so archive will run AFTER we correctly wrote index.
+- */
+- if (reject == 0) {
+- write_index(); /* write out index if succeed */
+- }
+-
+ /* Dump the message thru the pipe. We push out the header(leader),
+ * then the message body, then the footer.
+ */
+@@ -1570,6 +1562,15 @@ send_message()
+ }
+ }
+
++ /* If message have not reject, then write index here. (since we
++ * have subject information here! -- We assume here that sendmail
++ * will not fork shell(in this case, archive) before closing pipe.
++ * so archive will run AFTER we correctly wrote index.
++ */
++ if (reject == 0) {
++ write_index(); /* write out index if succeed */
++ }
++
+
+ /* clean-up
+ */
Home |
Main Index |
Thread Index |
Old Index