aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-01-03 21:29:06 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-01-03 21:29:06 +0000
commitf0633895d955e2472cbce0e82829b9d97bcd67a9 (patch)
tree5d85d5175020fa5437319a22b270ce8f8912e066
parent61b31d1951de8b8a73c525bbf7f7ee12b1de13c4 (diff)
downloadfetchmail-f0633895d955e2472cbce0e82829b9d97bcd67a9.tar.gz
fetchmail-f0633895d955e2472cbce0e82829b9d97bcd67a9.tar.bz2
fetchmail-f0633895d955e2472cbce0e82829b9d97bcd67a9.zip
Michael Warfield's IPv6 fixes.
svn path=/trunk/; revision=2314
-rw-r--r--NEWS3
-rw-r--r--conf.c10
-rw-r--r--driver.c5
-rw-r--r--socket.c2
4 files changed, 14 insertions, 6 deletions
diff --git a/NEWS b/NEWS
index 8cbe566d..11f1b04a 100644
--- a/NEWS
+++ b/NEWS
@@ -7,8 +7,9 @@ fetchmail-4.7.4 ():
* Supply our own strerror() if system doesn't have one.
* Gunther Leber's cleanup for the plugin/plugout code.
* Hajimu UMEMOTO's code for localtime in timestamps.
+* Michael Warfield's IPv6 fixes.
-There are 248 people on fetchmail-friends and 336 on fetchmail-announce.
+There are 249 people on fetchmail-friends and 335 on fetchmail-announce.
fetchmail-4.7.3 (Thu Dec 31 11:54:01 EST 1998):
* Added new FAQ item G11 and added material to R1.
diff --git a/conf.c b/conf.c
index 757a0e66..2db72830 100644
--- a/conf.c
+++ b/conf.c
@@ -230,7 +230,11 @@ void dump_config(struct runctl *runp, struct query *querylist)
using_kpop =
(ctl->server.protocol == P_POP3 &&
+#if !INET6
ctl->server.port == KPOP_PORT &&
+#else
+ 0 == strcmp( ctl->server.service, KPOP_PORT ) &&
+#endif
ctl->server.preauthenticate == A_KERBEROS_V4);
stringdump("pollname", ctl->server.pollname);
@@ -238,7 +242,11 @@ void dump_config(struct runctl *runp, struct query *querylist)
stringdump("via", ctl->server.via);
stringdump("protocol",
using_kpop ? "KPOP" : showproto(ctl->server.protocol));
+#if !INET6
numdump("port", ctl->server.port);
+#else
+ stringdump("service", ctl->server.service);
+#endif
numdump("timeout", ctl->server.timeout);
numdump("interval", ctl->server.interval);
@@ -322,7 +330,7 @@ void dump_config(struct runctl *runp, struct query *querylist)
fputs("'lmtp':FALSE,", stdout);
#ifdef INET6
- stringdump("netsec", ctl->netsec);
+ stringdump("netsec", ctl->server.netsec);
#endif /* INET6 */
stringdump("preconnect", ctl->preconnect);
stringdump("postconnect", ctl->postconnect);
diff --git a/driver.c b/driver.c
index b9849062..3650f14b 100644
--- a/driver.c
+++ b/driver.c
@@ -1476,7 +1476,7 @@ const struct method *proto; /* protocol method table */
char buf[POPBUFSIZE+1], *realhost;
int len, num, count, new, bytes, deletions = 0, *msgsizes = NULL;
#if INET6
- int fetches, dispatches;
+ int fetches, dispatches, oldphase;
#else /* INET6 */
int port, fetches, dispatches, oldphase;
#endif /* INET6 */
@@ -1502,8 +1502,7 @@ const struct method *proto; /* protocol method table */
#if INET6
if ((sock = SockOpen(realhost,
ctl->server.service ? ctl->server.service : protocol->service,
- ctl->server.netsec)) == -1, ctl->server.plugin
- )
+ ctl->server.netsec, ctl->server.plugin)) == -1)
#else /* INET6 */
if ((sock = SockOpen(realhost, port, NULL, ctl->server.plugin)) == -1)
#endif /* INET6 */
diff --git a/socket.c b/socket.c
index 5e9602cf..75a08bd6 100644
--- a/socket.c
+++ b/socket.c
@@ -189,7 +189,7 @@ int SockOpen(const char *host, int clientPort, const char *options,
if(hp->h_length != 4 && hp->h_length != 8)
{
h_errno = errno = 0;
- error(0, 0, _("fetchmail: illegal address length received for host %s"));
+ error(0, 0, _("fetchmail: illegal address length received for host %s"),host);
return -1;
}
/*