From b097d7472451d1585cf34b4cdfbc94f42c06e00c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 17 Jan 2000 03:04:48 +0000 Subject: Check for logfile existence. svn path=/trunk/; revision=2714 --- fetchmail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fetchmail.c') 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); -- cgit v1.2.3