From owner-freebsd-bugs@FreeBSD.ORG Wed Dec 22 12:10:30 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D53C16A4D2 for ; Wed, 22 Dec 2004 12:10:30 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16FA643D2D for ; Wed, 22 Dec 2004 12:10:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBMCAT5G059990 for ; Wed, 22 Dec 2004 12:10:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBMCATNK059989; Wed, 22 Dec 2004 12:10:29 GMT (envelope-from gnats) Date: Wed, 22 Dec 2004 12:10:29 GMT Message-Id: <200412221210.iBMCATNK059989@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Mark Knight Subject: Re: bin/75356: amd logs to /dev/console when it shouldn't X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mark Knight List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 12:10:30 -0000 The following reply was made to PR bin/75356; it has been noted by GNATS. From: Mark Knight 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 #include 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/