Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: jtk@atria.com (John Kohl)
Subject: Re: syslog() after chroot() doesn't log?
Date: 1995/06/09	[thread overview]
Message-ID: <D9wopG.Hzs@atria.com> (raw)
In-Reply-To: 3r4u9r$psu@felix.seas.gwu.edu

>>>>> "Richard" == Richard D Yentis <ryentis@seas.gwu.edu> 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 <jtk@atria.com> or <jtkohl@mit.edu>
working for but not representing:	Atria Software
sometimes hacking on:			NetBSD/i386



      reply	other threads:[~1995-06-09  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-06-07  4:00 syslog() after chroot() doesn't log? Richard D. Yentis
1995-06-09  4:00 ` John Kohl [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox