From crawdad@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@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@heffalump.fnal.gov> for krb5-bugs@mit.edu; Thu,
27 Feb 2003 13:48:43 -0600 (CST)
Received: (from crawdad@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@fnal.gov
Subject: openlog() error in ksu
To: krb5-bugs@mit.edu
Cc: crawdad@fnal.gov
Reply-to: crawdad@gungnir.fnal.gov
Message-id: <200302271948.h1RJmgt21033@gungnir.fnal.gov>
Content-transfer-encoding: 7BIT
X-send-pr-version: 3.99
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.
since Kerberos 1.0.X.
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 */
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@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@heffalump.fnal.gov> for krb5-bugs@mit.edu; Thu,
27 Feb 2003 13:48:43 -0600 (CST)
Received: (from crawdad@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@fnal.gov
Subject: openlog() error in ksu
To: krb5-bugs@mit.edu
Cc: crawdad@fnal.gov
Reply-to: crawdad@gungnir.fnal.gov
Message-id: <200302271948.h1RJmgt21033@gungnir.fnal.gov>
Content-transfer-encoding: 7BIT
X-send-pr-version: 3.99
Show quoted text
>Submitter-Id: net
>Originator: Matt Crawford
>Organization: Farmilab
>Originator: Matt Crawford
>Organization: Farmilab
Show quoted text
>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)>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:
Show quoted text
>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.
Show quoted text
>How-To-Repeat:
Run ksu under Red Hat Linux 7.X. See. This bug has existedsince Kerberos 1.0.X.
Show quoted text
>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 */