aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorDaniel O'Callaghan <danny@FreeBSD.org>1998-02-25 07:10:57 +0000
committerDaniel O'Callaghan <danny@FreeBSD.org>1998-02-25 07:10:57 +0000
commit20d2e1ee59a61eebdb7ad5da5ccb79cfba48549e (patch)
tree483cf50dbc3dc2da188d66651770415876eaabdb /libexec
parentedc693217cc3e620ce804f1df93b3d349025a66a (diff)
Notes
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/popen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libexec/ftpd/popen.c b/libexec/ftpd/popen.c
index c761446fe27e..47534d525be7 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 <sys/types.h>
@@ -56,6 +56,8 @@ static const char rcsid[] =
#include "extern.h"
#ifdef INTERNAL_LS
#include "pathnames.h"
+#include <syslog.h>
+#include <varargs.h>
#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