Currently the mbsync program will crash if you don't have a network
connection. This fixes this.
OK?
Index: Makefile
===================================================================
RCS file: /home/edd/cvsync/ports/mail/isync/Makefile,v
retrieving revision 1.28
diff -u -p -r1.28 Makefile
--- Makefile 4 Apr 2015 04:24:37 -0000 1.28
+++ Makefile 27 Sep 2015 18:16:39 -0000
@@ -3,7 +3,7 @@
COMMENT= synchronize IMAP4 and maildir mailboxes
DISTNAME= isync-1.2.0
-REVISION= 0
+REVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=isync/}
Index: patches/patch-src_socket_c
===================================================================
RCS file: patches/patch-src_socket_c
diff -N patches/patch-src_socket_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_socket_c 27 Sep 2015 18:24:21 -0000
@@ -0,0 +1,20 @@
+$OpenBSD$
+
+Don't crash when network connection is unavailable.
+
+From upstream 89dc7592ee.
+
+--- src/socket.c.orig Sun Feb 15 17:18:20 2015
++++ src/socket.c Sun Sep 27 19:17:16 2015
+@@ -520,7 +520,10 @@ static void
+ socket_connect_bail( conn_t *conn )
+ {
+ #ifdef HAVE_IPV6
+- freeaddrinfo( conn->addrs );
++ if (conn->addrs) {
++ freeaddrinfo( conn->addrs );
++ conn->addrs = 0;
++ }
+ #endif
+ free( conn->name );
+ conn->name = 0;
--
Best Regards
Edd Barrett
http://www.theunixzoo.co.uk