]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
su could log the session in utmp.
authorNicolas François <nicolas.francois@centraliens.net>
Tue, 20 Aug 2013 19:14:10 +0000 (21:14 +0200)
committerNicolas François <nicolas.francois@centraliens.net>
Tue, 20 Aug 2013 19:14:10 +0000 (21:14 +0200)
src/su.c

index 927440305e5536ed3840126ddf32b0c9aa5c1f08..3dd199512796f00375b3841150eaa4e9834ce4cf 100644 (file)
--- 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) {