Date: Wed, 22 Dec 2004 12:10:29 GMT From: Mark Knight <markk@knigma.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/75356: amd logs to /dev/console when it shouldn't Message-ID: <200412221210.iBMCATNK059989@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/75356; it has been noted by GNATS. From: Mark Knight <markk@knigma.org> To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: bin/75356: amd logs to /dev/console when it shouldn't Date: Wed, 22 Dec 2004 12:09:17 +0000 The problem looks related to recent changes to syslogd and libc, to log via /var/run/logpriv for privileged processes. The program below works running as a mortal, but logs to the console if run as root. #include <syslog.h> #include <stdarg.h> int main(int argc, char *argv[]) { openlog("test", LOG_CONS, LOG_LOCAL0); syslog(LOG_INFO, "%s", "test"); closelog(); } -- Mark A. R. Knight finger: markk@knigma.org Tel: +44 7973 410732 http://www.knigma.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412221210.iBMCATNK059989>