summaryrefslogtreecommitdiff
path: root/libexec/ftpd
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-07-30 01:59:18 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-07-30 01:59:18 +0000
commitfde9b6e55e0a647455ca9e4b149d14da78ba67c4 (patch)
tree054630edabd644c9bb810eb4b41406180d2e6c8b /libexec/ftpd
parenta534e1795f262cf221970b30a9151364eb2e19ac (diff)
closelog() before exec.
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/popen.c3
1 files changed, 3 insertions, 0 deletions
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 <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <syslog.h>
#include <unistd.h>
#include "extern.h"
@@ -131,6 +132,8 @@ ftpd_popen(program, type)
}
(void)close(pdes[1]);
}
+ closelog();
+
execv(gargv[0], gargv);
_exit(1);
}