PR: 5812
Pointed-in-the-right-driection-by: Mike Smith and Steve Price Close syslogging before calling ls_main()
This commit is contained in:
parent
edc693217c
commit
20d2e1ee59
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33829
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user