From 346f8cd485a03797a26ce9dfc45e21965b23ff32 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 19 Dec 2001 07:01:25 +0000 Subject: Minor fixes from Henrique. svn path=/trunk/; revision=3566 --- NEWS | 4 +++- fetchmail.c | 6 ++++-- fetchmail.h | 2 +- socket.c | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 81ba0df1..67a2a01a 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,8 @@ (The `lines' figures total .c, .h, .l, and .y files under version control.) +* Minor fixes by HMH. + fetchmail-5.9.6 (Fri Dec 14 04:03:50 EST 2001), 21247 lines: * OPIE bug fixes by Jun Miyoshi . @@ -189,7 +191,7 @@ fetchmail-5.8.10 (Mon Jun 25 17:04:08 EDT 2001), 20922 lines: * More fixes for the new message-marking code from Thomas Moestl. * Fixes for ODMR code from Matt Armstrong. -There are 355 people on fetchmail-friends and on fetchmail-announce. +There are 355 people on fetchmail-friends and 603 on fetchmail-announce. fetchmail-5.8.9 (Sun Jun 24 20:30:49 EDT 2001), 20922 lines: diff --git a/fetchmail.c b/fetchmail.c index c5b6f7cb..4c07dee6 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -487,8 +487,10 @@ int main(int argc, char **argv) { if (run.logfile && access(run.logfile, F_OK) == 0) { - freopen(run.logfile, "a", stdout); - freopen(run.logfile, "a", stderr); + if (!freopen(run.logfile, "a", stdout)) + report(stderr, GT_("could not open %s to append logs to \n"), run.logfile); + if (!freopen(run.logfile, "a", stderr)) + report(stdout, GT_("could not open %s to append logs to \n"), run.logfile); } } diff --git a/fetchmail.h b/fetchmail.h index 4ed413e8..0a7fe39b 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -506,7 +506,7 @@ int prc_filecheck(const char *, const flag); /* base64.c */ void to64frombits(unsigned char *, const unsigned char *, int); -int from64tobits(char *, const char *, int len); +int from64tobits(char *, const char *, int maxlen); /* unmime.c */ /* Bit-mask returned by MimeBodyType */ diff --git a/socket.c b/socket.c index 8c2ce7bb..0d7bccdb 100644 --- a/socket.c +++ b/socket.c @@ -223,7 +223,7 @@ int UnixOpen(const char *path) sigset_t allsigs; #endif /* HAVE_SIGPROCMASK */ - int stat, sock = -1; + int sock = -1; struct sockaddr_un ad; memset(&ad, 0, sizeof(ad)); ad.sun_family = AF_UNIX; -- cgit v1.2.3