initial import
[patches.git] / shadow-su-logging.patch
CommitLineData
5e993f12 1--- src/su.c
2+++ src/su.c
3@@ -731,8 +731,9 @@ int main (int argc, char **argv)
4 endspent ();
5 #ifdef USE_SYSLOG
6 if (getdef_bool ("SYSLOG_SU_ENAB"))
7- SYSLOG ((LOG_INFO, "+ %s %s:%s", tty,
8- oldname[0] ? oldname : "???", name[0] ? name : "???"));
9+ SYSLOG ((LOG_INFO, "+ %s %s:%s (%s)", tty,
10+ oldname[0] ? oldname : "???", name[0] ? name : "???",
11+ doshell ? "new shell" : command));
12 #endif
13
14 #ifdef USE_PAM