From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2ee90c3e8cc7e312 X-Google-Attributes: gidfee84,public From: jtk@atria.com (John Kohl) Subject: Re: syslog() after chroot() doesn't log? Date: 1995/06/09 Message-ID: #1/1 X-Deja-AN: 104152237 sender: news@atria.com references: <3r4u9r$psu@felix.seas.gwu.edu> organization: Atria Software, Inc. newsgroups: comp.unix.osf.osf1 >>>>> "Richard" == Richard D Yentis writes: In article <3r4u9r$psu@felix.seas.gwu.edu> ryentis@seas.gwu.edu (Richard D. Yentis) writes: Richard> I am trying to use wu-ftpd on an a DEC Alpha running OSF/1 ver. 2. Richard> When an anonymous user logs in the program does a chroot() to ~ftp. Richard> This works, but all of the syslog()s after that do not produce entries Richard> in the syslog file, although the syslog() function does return a 0 Richard> indicating that it was able to log the information. syslog(3) does its stuff by sending messages to /dev/log, which of course is not available after a chroot(2) call. The OSF/1 sources I have access to don't seem to have an option to force a connect(2) of the syslog socket before chroot. However, you can probably just pull the relevant syslog.c files from your favorite 4.4BSD-Lite distribution and use them instead. -- John Kohl or working for but not representing: Atria Software sometimes hacking on: NetBSD/i386