diff options
author | danny <danny@FreeBSD.org> | 1998-02-25 07:10:57 +0000 |
---|---|---|
committer | danny <danny@FreeBSD.org> | 1998-02-25 07:10:57 +0000 |
commit | b58c846db625ae64e42aece176c9f0c3b4de6083 (patch) | |
tree | b2880def32e685093e7b87d187a10a84198f5a30 /libexec/ftpd/popen.c | |
parent | aac1570b6f0e87da179d5f3ecb28d118f9f8cd32 (diff) | |
download | FreeBSD-src-b58c846db625ae64e42aece176c9f0c3b4de6083.zip FreeBSD-src-b58c846db625ae64e42aece176c9f0c3b4de6083.tar.gz |
PR: 5812
Pointed-in-the-right-driection-by: Mike Smith and Steve Price
Close syslogging before calling ls_main()
Diffstat (limited to 'libexec/ftpd/popen.c')
-rw-r--r-- | libexec/ftpd/popen.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libexec/ftpd/popen.c b/libexec/ftpd/popen.c index c761446..47534d5 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 |