mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue