From db5358a3bc37a9bffb5a4b4b679d206081450754 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 25 Jul 1996 16:00:16 +0000 Subject: Attempted to prevent a sendmail loop. svn path=/trunk/; revision=42 --- daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'daemon.c') diff --git a/daemon.c b/daemon.c index 66218b57..cfb6e53e 100644 --- a/daemon.c +++ b/daemon.c @@ -183,7 +183,7 @@ nottyDetach: } if (logfile) - open(logfile, O_CREAT|O_WRONLY, 0777); /* stdout */ + fd = open(logfile, O_CREAT|O_WRONLY, 0777); /* stdout */ else if (dup(fd) < 0) { /* stdout */ perror("dup"); -- cgit v1.2.3