From 1e54da26512fef3f1ebe075bfb4dc9bdbba4bf76 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolas=20Fran=C3=A7ois?= Date: Tue, 20 Aug 2013 21:14:10 +0200 Subject: [PATCH] su could log the session in utmp. --- src/su.c | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.47.3