aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--interface.c7
2 files changed, 6 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 4acef9fb..b6809491 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@
(The `lines' figures total .c, .h, .l, and .y files under version control.)
+* Autoprobe now recognizes Domino IMAP servers and warns the user.
+* Add a needed pclose(3) call in interface.c (thank Matthias Andree).
+
fetchmail-5.3.5 (Wed Mar 29 18:17:19 EST 2000), 18840 lines:
* Back out the InterChange workaround, it breaks operation with M$ Exchange.
diff --git a/interface.c b/interface.c
index 7ba922f9..e52db466 100644
--- a/interface.c
+++ b/interface.c
@@ -81,12 +81,11 @@ void interface_init(void)
{
int major, minor;
- if (fscanf(fp, "%d.%d.%*d", &major, &minor) != 2)
- return;
-
- if (major >= 2 && minor >= 2)
+ if (fscanf(fp, "%d.%d.%*d", &major, &minor) >= 2
+ && major >= 2 && minor >= 2)
/* Linux 2.2 -- transmit packet count in 10th field */
netdevfmt = "%d %d %*d %*d %*d %d %*d %*d %*d %d %*d %*d %d";
+ pclose(fp);
}
}