openlog() needs to have LOG_NDELAY added, or else the syslog() calls after
the chroot will not get sent to syslogd. PR: 4910 Reviewed by: phk Submitted by: Jim Mercer <jim@komodo.reptiles.org>
This commit is contained in:
parent
dfed2de6cc
commit
20ef883886
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35152
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)tftpd.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: tftpd.c,v 1.10 1997/12/03 07:19:58 charnier Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -122,7 +122,7 @@ main(argc, argv)
|
||||
char *chroot_dir = NULL;
|
||||
struct passwd *nobody;
|
||||
|
||||
openlog("tftpd", LOG_PID, LOG_FTP);
|
||||
openlog("tftpd", LOG_PID | LOG_NDELAY, LOG_FTP);
|
||||
while ((ch = getopt(argc, argv, "lns:")) != -1) {
|
||||
switch (ch) {
|
||||
case 'l':
|
||||
|
Loading…
Reference in New Issue
Block a user