[krbdev.mit.edu #1363] ksu logs to stderr on Red Hat Linux

The RT System itself via RT rt-comment at krbdev.mit.edu
Thu Feb 27 14:48:49 EST 2003


>From crawdad at gungnir.fnal.gov  Thu Feb 27 14:48:45 2003
Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83]) by krbdev.mit.edu (8.9.3) with ESMTP
	id OAA01679; Thu, 27 Feb 2003 14:48:45 -0500 (EST)
Received: from heffalump.fnal.gov (heffalump.fnal.gov [131.225.9.20])
	by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id OAA07336
	for <krb5-bugs at mit.edu>; Thu, 27 Feb 2003 14:48:43 -0500 (EST)
Received: from gungnir.fnal.gov (gungnir.fnal.gov [131.225.80.1])
 by heffalump.fnal.gov
 (iPlanet Messaging Server 5.2 HotFix 1.10 (built Jan 23 2003))
 with ESMTP id <0HAZ00HQ2GD7ED at heffalump.fnal.gov> for krb5-bugs at mit.edu; Thu,
 27 Feb 2003 13:48:43 -0600 (CST)
Received: (from crawdad at localhost)	by gungnir.fnal.gov (8.11.6+Sun/8.11.6)
 id h1RJmgt21033; Thu, 27 Feb 2003 13:48:42 -0600 (CST)
Date: Thu, 27 Feb 2003 13:48:42 -0600 (CST)
From: crawdad at fnal.gov
Subject: openlog() error in ksu
To: krb5-bugs at mit.edu
Cc: crawdad at fnal.gov
Reply-to: crawdad at gungnir.fnal.gov
Message-id: <200302271948.h1RJmgt21033 at gungnir.fnal.gov>
Content-transfer-encoding: 7BIT
X-send-pr-version: 3.99


>Submitter-Id:	net
>Originator:	Matt Crawford
>Organization:   Farmilab
	
>Confidential:	 no 
>Synopsis:	ksu logs to stderr on Red Hat Linux
>Severity:	non-critical
>Priority:	low 
>Category:	krb5-clients
>Class:		sw-bug 
>Release:	krb5-1.2.7
>Environment:
	i386, Red Hat Linux 6.1 - 7.3.1 (at least)

>Description:
	"LOG_AUTH" is mistakenly included in the second arg to openlog()
	On most systems this has no effect, but on RH Linux (at least),
	LOG_AUTH == LOG_PERROR and all syslog messages are copied to stderr.
>How-To-Repeat:
	Run ksu under Red Hat Linux 7.X.  See.  This bug has existed
	since Kerberos 1.0.X.
>Fix:

diff -c -r1.3 src/clients/ksu/main.c
*** main.c      4 Apr 2000 16:53:56 -0000       1.3
--- main.c      27 Feb 2003 19:33:35 -0000
***************
*** 148,154 ****
  #ifndef LOG_AUTH /* 4.2 syslog */
      openlog(prog_name, LOG_PID|LOG_NDELAY);
  #else
!     openlog(prog_name, LOG_PID | LOG_AUTH | LOG_NDELAY, LOG_AUTH);
  #endif /* 4.2 syslog */
  
        
--- 148,154 ----
  #ifndef LOG_AUTH /* 4.2 syslog */
      openlog(prog_name, LOG_PID|LOG_NDELAY);
  #else
!     openlog(prog_name, LOG_PID | LOG_NDELAY, LOG_AUTH);
  #endif /* 4.2 syslog */
  
        


More information about the krb5-bugs mailing list