bin/75356: amd logs to /dev/console when it shouldn't
Mark Knight
markk at knigma.org
Wed Dec 22 04:10:30 PST 2004
The following reply was made to PR bin/75356; it has been noted by GNATS.
From: Mark Knight <markk at knigma.org>
To: freebsd-gnats-submit at 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 at knigma.org
Tel: +44 7973 410732 http://www.knigma.org/
More information about the freebsd-bugs
mailing list