diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-12-19 07:01:25 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-12-19 07:01:25 +0000 |
commit | 346f8cd485a03797a26ce9dfc45e21965b23ff32 (patch) | |
tree | fabb73f7fe255532a167de00a946c18c697e2eff | |
parent | 50c5fd114425e427abab1b6237a94277d9a78b3b (diff) | |
download | fetchmail-346f8cd485a03797a26ce9dfc45e21965b23ff32.tar.gz fetchmail-346f8cd485a03797a26ce9dfc45e21965b23ff32.tar.bz2 fetchmail-346f8cd485a03797a26ce9dfc45e21965b23ff32.zip |
Minor fixes from Henrique.
svn path=/trunk/; revision=3566
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | fetchmail.c | 6 | ||||
-rw-r--r-- | fetchmail.h | 2 | ||||
-rw-r--r-- | socket.c | 2 |
4 files changed, 9 insertions, 5 deletions
@@ -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 <usako@omnisci.co.jp>. @@ -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 */ @@ -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; |