[Pkg-shadow-devel] patch for su - 1
Nicolas François
nicolas.francois@centraliens.net
Fri, 3 Jun 2005 01:28:25 +0200
--HWvPVVuAAfuRc6SZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
And the patch now.
--
Nekral
--HWvPVVuAAfuRc6SZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="008_su_syslog_old:new"
Goal: Fix su syslogs to be less ambiguous. (old:new instead of old-new
because '-' can appear in usernames.) Not clearer, mind you, but less
ambiguous.
Fixes: #213592
Status wrt upstream: It should be forwarded to upstream.
--- su.c.orig 2005-06-02 12:59:59.951911000 +0200
+++ su.c 2005-06-02 13:05:46.351911000 +0200
@@ -125,7 +125,7 @@
#ifdef USE_SYSLOG
if (getdef_bool ("SYSLOG_SU_ENAB"))
SYSLOG ((pwent.pw_uid ? LOG_INFO : LOG_NOTICE,
- "- %s %s-%s", tty,
+ "- %s %s:%s", tty,
oldname[0] ? oldname : "???", name[0] ? name : "???"));
closelog ();
#endif
@@ -629,7 +629,7 @@
#endif
#ifdef USE_SYSLOG
if (getdef_bool ("SYSLOG_SU_ENAB"))
- SYSLOG ((LOG_INFO, "+ %s %s-%s", tty,
+ SYSLOG ((LOG_INFO, "+ %s %s:%s", tty,
oldname[0] ? oldname : "???", name[0] ? name : "???"));
#endif
--HWvPVVuAAfuRc6SZ--