aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fetchmail.c2
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);