From 20d2e1ee59a61eebdb7ad5da5ccb79cfba48549e Mon Sep 17 00:00:00 2001 From: Daniel O'Callaghan Date: Wed, 25 Feb 1998 07:10:57 +0000 Subject: [PATCH] PR: 5812 Pointed-in-the-right-driection-by: Mike Smith and Steve Price Close syslogging before calling ls_main() --- libexec/ftpd/popen.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libexec/ftpd/popen.c b/libexec/ftpd/popen.c index c761446fe27..47534d525be 100644 --- a/libexec/ftpd/popen.c +++ b/libexec/ftpd/popen.c @@ -39,7 +39,7 @@ static char sccsid[] = "@(#)popen.c 8.3 (Berkeley) 4/6/94"; #endif static const char rcsid[] = - "$Id$"; + "$Id: popen.c,v 1.9 1997/11/21 07:38:43 charnier Exp $"; #endif /* not lint */ #include @@ -56,6 +56,8 @@ static const char rcsid[] = #include "extern.h" #ifdef INTERNAL_LS #include "pathnames.h" +#include +#include #endif #define MAXUSRARGS 100 @@ -146,6 +148,8 @@ ftpd_popen(program, type) extern int optreset; /* Reset getopt for ls_main() */ optreset = optind = optopt = 1; + /* Close syslogging to remove pwd.db missing msgs */ + closelog(); exit(ls_main(gargc, gargv)); } #endif