Date: Fri, 31 Oct 1997 17:54:15 -0500 (EST) From: jim@komodo.reptiles.org To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/4910: tftpd does not log when chroot is enabled Message-ID: <m0xRPxH-0009zqC@komodo.reptiles.org> Resent-Message-ID: <199710312300.PAA11254@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4910 >Category: bin >Synopsis: tftpd does not log when chroot is enabled >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 31 15:00:00 PST 1997 >Last-Modified: >Originator: Jim Mercer >Organization: Reptilian Research >Release: FreeBSD 2.2.5-RELEASE i386 >Environment: FreeBSD komodo.reptiles.org 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #0: Wed Oct 22 17:30:35 EDT 1997 root@komodo.reptiles.org:/usr/src/sys/compile/KOMODO i386 >Description: openlog() needs to have LOG_NDELAY added, or else the syslog() calls after the chroot will not get sent to syslogd. >How-To-Repeat: in /etc/inetd.conf: logging, no chroot, works fine: tftp dgram udp wait nobody /usr/libexec/tftpd tftpd -l logging, with chroot, no logging after chroot tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot >Fix: *** tftpd.c Fri Oct 31 15:38:27 1997 --- tftpd.c.old Fri Oct 31 14:54:44 1997 *************** *** 120,126 **** char *chroot_dir = NULL; struct passwd *nobody; ! openlog("tftpd", LOG_PID | LOG_NDELAY, LOG_FTP); while ((ch = getopt(argc, argv, "lns:")) != EOF) { switch (ch) { case 'l': --- 120,126 ---- char *chroot_dir = NULL; struct passwd *nobody; ! openlog("tftpd", LOG_PID, LOG_FTP); while ((ch = getopt(argc, argv, "lns:")) != EOF) { switch (ch) { case 'l': >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0xRPxH-0009zqC>