aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-12-19 07:01:25 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-12-19 07:01:25 +0000
commit346f8cd485a03797a26ce9dfc45e21965b23ff32 (patch)
treefabb73f7fe255532a167de00a946c18c697e2eff
parent50c5fd114425e427abab1b6237a94277d9a78b3b (diff)
downloadfetchmail-346f8cd485a03797a26ce9dfc45e21965b23ff32.tar.gz
fetchmail-346f8cd485a03797a26ce9dfc45e21965b23ff32.tar.bz2
fetchmail-346f8cd485a03797a26ce9dfc45e21965b23ff32.zip
Minor fixes from Henrique.
svn path=/trunk/; revision=3566
-rw-r--r--NEWS4
-rw-r--r--fetchmail.c6
-rw-r--r--fetchmail.h2
-rw-r--r--socket.c2
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 <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 */
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;