pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/isync Avoid segfault when parsing configuration f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cd54d97fdbb6
branches:  trunk
changeset: 524103:cd54d97fdbb6
user:      tonio <tonio%pkgsrc.org@localhost>
date:      Thu Jan 18 18:26:21 2007 +0000

description:
Avoid segfault when parsing configuration file under netbsd

diffstat:

 mail/isync/Makefile         |   5 +++--
 mail/isync/distinfo         |   3 ++-
 mail/isync/patches/patch-ae |  13 +++++++++++++
 3 files changed, 18 insertions(+), 3 deletions(-)

diffs (60 lines):

diff -r 41a8f2e94a3a -r cd54d97fdbb6 mail/isync/Makefile
--- a/mail/isync/Makefile       Thu Jan 18 18:07:33 2007 +0000
+++ b/mail/isync/Makefile       Thu Jan 18 18:26:21 2007 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2007/01/18 10:27:11 tonio Exp $
+# $NetBSD: Makefile,v 1.20 2007/01/18 18:26:21 tonio Exp $
 #
 
 DISTNAME=      isync-1.0.3
+PKGREVISION=   1
 CATEGORIES=    mail net
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=isync/}
 
@@ -10,6 +11,7 @@
 COMMENT=       Synchronize a maildir with an imap server
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+INSTALLATION_DIRS+= share/examples/isync
 
 GNU_CONFIGURE= YES
 
@@ -20,7 +22,6 @@
 .include "../../databases/db4/buildlink3.mk"
 
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/isync
        ${INSTALL_DATA} ${WRKSRC}/src/mbsyncrc.sample \
                ${PREFIX}/share/examples/isync/mbsyncrc.sample
        ${INSTALL_DATA} ${WRKSRC}/src/compat/isyncrc.sample \
diff -r 41a8f2e94a3a -r cd54d97fdbb6 mail/isync/distinfo
--- a/mail/isync/distinfo       Thu Jan 18 18:07:33 2007 +0000
+++ b/mail/isync/distinfo       Thu Jan 18 18:26:21 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2007/01/18 10:27:11 tonio Exp $
+$NetBSD: distinfo,v 1.8 2007/01/18 18:26:21 tonio Exp $
 
 SHA1 (isync-1.0.3.tar.gz) = 21500bb486ea0b8e9eae680f835a5a58ffe6a0d3
 RMD160 (isync-1.0.3.tar.gz) = c1ed6e3691eebbe97a57247102afb6794556bdb2
@@ -7,3 +7,4 @@
 SHA1 (patch-ab) = bee5b091f89a670b584b73ef58774ae992bb6637
 SHA1 (patch-ac) = d06d1444f66eaeab1fdf22e1aa2f1b9184abccfa
 SHA1 (patch-ad) = c4a86de19b3004752dc51da9453b702945fe6578
+SHA1 (patch-ae) = 2fddc575e8824ecbbb4b8c51a56193840b43d647
diff -r 41a8f2e94a3a -r cd54d97fdbb6 mail/isync/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/isync/patches/patch-ae       Thu Jan 18 18:26:21 2007 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.5 2007/01/18 18:26:21 tonio Exp $
+
+--- src/config.c.orig  2006-11-01 07:54:31.000000000 +0100
++++ src/config.c
+@@ -252,7 +252,7 @@ int
+ load_config( const char *where, int pseudo )
+ {
+       conffile_t cfile;
+-      store_conf_t *store, **storeapp = &stores, **sptarg;
++      store_conf_t *store = NULL, **storeapp = &stores, **sptarg;
+       channel_conf_t *channel, **channelapp = &channels;
+       group_conf_t *group, **groupapp = &groups;
+       string_list_t *chanlist, **chanlistapp;



Home | Main Index | Thread Index | Old Index