Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 561998
Collapse All | Expand All

(-)src/session-child.c.org (-3 / +6 lines)
Lines 416-423 Link Here
416
            ut.ut_tv.tv_usec = tv.tv_usec;
416
            ut.ut_tv.tv_usec = tv.tv_usec;
417
417
418
            updwtmpx ("/var/log/btmp", &ut);
418
            updwtmpx ("/var/log/btmp", &ut);
419
419
#if HAVE_LIBAUDIT
420
            audit_event (AUDIT_USER_LOGIN, username, -1, remote_host_name, tty, FALSE);
420
            audit_event (AUDIT_USER_LOGIN, username, -1, remote_host_name, tty, FALSE);
421
#endif
421
        }
422
        }
422
423
423
        /* Check account is valid */
424
        /* Check account is valid */
Lines 733-740 Link Here
733
                g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
734
                g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
734
            endutxent ();
735
            endutxent ();
735
            updwtmpx ("/var/log/wtmp", &ut);
736
            updwtmpx ("/var/log/wtmp", &ut);
736
737
#if HAVE_LIBAUDIT
737
            audit_event (AUDIT_USER_LOGIN, username, uid, remote_host_name, tty, TRUE);
738
            audit_event (AUDIT_USER_LOGIN, username, uid, remote_host_name, tty, TRUE);
739
#endif
738
        }
740
        }
739
741
740
        waitpid (child_pid, &return_code, 0);
742
        waitpid (child_pid, &return_code, 0);
Lines 771-778 Link Here
771
                g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
773
                g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
772
            endutxent ();
774
            endutxent ();
773
            updwtmpx ("/var/log/wtmp", &ut);
775
            updwtmpx ("/var/log/wtmp", &ut);
774
776
#if HAVE_LIBAUDIT
775
            audit_event (AUDIT_USER_LOGOUT, username, uid, remote_host_name, tty, TRUE);
777
            audit_event (AUDIT_USER_LOGOUT, username, uid, remote_host_name, tty, TRUE);
778
#endif
776
        }
779
        }
777
    }
780
    }
778
781

Return to bug 561998