diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-01-17 03:04:48 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-01-17 03:04:48 +0000 |
commit | b097d7472451d1585cf34b4cdfbc94f42c06e00c (patch) | |
tree | 968424d8a56ffd44a74e74b9f755080928aa1e5e | |
parent | 26d408b17903b7e06d2abd662d36445fea5f502c (diff) | |
download | fetchmail-b097d7472451d1585cf34b4cdfbc94f42c06e00c.tar.gz fetchmail-b097d7472451d1585cf34b4cdfbc94f42c06e00c.tar.bz2 fetchmail-b097d7472451d1585cf34b4cdfbc94f42c06e00c.zip |
Check for logfile existence.
svn path=/trunk/; revision=2714
-rw-r--r-- | fetchmail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fetchmail.c b/fetchmail.c index d03a2b0e..0fab29a3 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -553,7 +553,7 @@ int main(int argc, char **argv) if (run.poll_interval && !getuid()) signal(SIGHUP, SIG_IGN); } - else if (run.logfile) + else if (run.logfile && access(run.logfile, F_OK) == 0) { freopen(run.logfile, "a", stdout); freopen(run.logfile, "a", stderr); |