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 /fetchmail.c | |
parent | 50c5fd114425e427abab1b6237a94277d9a78b3b (diff) | |
download | fetchmail-346f8cd485a03797a26ce9dfc45e21965b23ff32.tar.gz fetchmail-346f8cd485a03797a26ce9dfc45e21965b23ff32.tar.bz2 fetchmail-346f8cd485a03797a26ce9dfc45e21965b23ff32.zip |
Minor fixes from Henrique.
svn path=/trunk/; revision=3566
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); } } |