From fde9b6e55e0a647455ca9e4b149d14da78ba67c4 Mon Sep 17 00:00:00 2001 From: Jason Downs Date: Tue, 30 Jul 1996 01:59:18 +0000 Subject: closelog() before exec. --- libexec/ftpd/popen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libexec/ftpd/popen.c b/libexec/ftpd/popen.c index eee16837ea0..8bb0c6bba4d 100644 --- a/libexec/ftpd/popen.c +++ b/libexec/ftpd/popen.c @@ -54,6 +54,7 @@ static char rcsid[] = "$NetBSD: popen.c,v 1.5 1995/04/11 02:45:00 cgd Exp $"; #include #include #include +#include #include #include "extern.h" @@ -131,6 +132,8 @@ ftpd_popen(program, type) } (void)close(pdes[1]); } + closelog(); + execv(gargv[0], gargv); _exit(1); } -- cgit v1.2.3