Bug 45965
| Summary: | ksu prints syslog messages to stderr | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Matthew Melvin <matthewmelvin> |
| Component: | krb5 | Assignee: | Nalin Dahyabhai <nalin> |
| Status: | CLOSED RAWHIDE | QA Contact: | Brian Brock <bbrock> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.0 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2001-06-26 04:30:38 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
This will be changed in krb5-1.2.2-9 and later. Thanks! |
Description of Problem: ksu prints syslog messages to stderr even when using the -q (quiet) option. [user@hostname ~]$ ksu -q ksu[24196]: 'ksu root' authenticated user@REALM for user on /dev/pts/4 ksu[24196]: Account root: authorization for user@REALM successful [root@hostname /home/user]# This would seem to be due to LOG_AUTH being used as an option to the openlog() call in krb5-1.2.2/src/clients/ksu/main.c instead of just a facility... #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 */ It should prolly just read... #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 */