From: Nicolas François Date: Tue, 20 Aug 2013 19:14:10 +0000 (+0200) Subject: su could log the session in utmp. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e54da26512fef3f1ebe075bfb4dc9bdbba4bf76;p=thirdparty%2Fshadow.git su could log the session in utmp. --- diff --git a/src/su.c b/src/su.c index 927440305..3dd199512 100644 --- a/src/su.c +++ b/src/su.c @@ -404,6 +404,7 @@ static void handle_session (const struct passwd *pw) exit (1); } + /* FIXME: create UTMP entry? */ } return; /* Only the child will return from handle_session */ } else if ((pid_t)-1 == pid_child) { @@ -573,6 +574,8 @@ static void handle_session (const struct passwd *pw) (void) fputs (_(" ...terminated.\n"), stderr); } + /* FIXME: clear UTMP entry? */ + #ifdef USE_PAM ret = pam_close_session (pamh, 0); if (PAM_SUCCESS != ret) {