Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 766866 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-5 / +5 lines)
Line  Link Here
0
-- a/src/session-child.c.orig
0
++ b/src/session-child.c
Lines 194-200 Link Here
194
194
195
/* GNU provides this but we can't rely on that so let's make our own version */
195
/* GNU provides this but we can't rely on that so let's make our own version */
196
static void
196
static void
197
updwtmpx (const gchar *wtmp_file, struct utmpx *ut)
197
_updwtmpx (const gchar *wtmp_file, struct utmpx *ut)
198
{
198
{
199
    struct utmp u;
199
    struct utmp u;
200
    memset (&u, 0, sizeof (u));
200
    memset (&u, 0, sizeof (u));
Lines 363-369 Link Here
363
            ut.ut_tv.tv_sec = tv.tv_sec;
363
            ut.ut_tv.tv_sec = tv.tv_sec;
364
            ut.ut_tv.tv_usec = tv.tv_usec;
364
            ut.ut_tv.tv_usec = tv.tv_usec;
365
365
366
            updwtmpx ("/var/log/btmp", &ut);
366
            _updwtmpx ("/var/log/btmp", &ut);
367
367
368
#if HAVE_LIBAUDIT
368
#if HAVE_LIBAUDIT
369
            audit_event (AUDIT_USER_LOGIN, username, -1, remote_host_name, tty, FALSE);
369
            audit_event (AUDIT_USER_LOGIN, username, -1, remote_host_name, tty, FALSE);
Lines 708-714 Link Here
708
            if (!pututxline (&ut))
708
            if (!pututxline (&ut))
709
                g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
709
                g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
710
            endutxent ();
710
            endutxent ();
711
            updwtmpx ("/var/log/wtmp", &ut);
711
            _updwtmpx ("/var/log/wtmp", &ut);
712
712
713
#if HAVE_LIBAUDIT
713
#if HAVE_LIBAUDIT
714
            audit_event (AUDIT_USER_LOGIN, username, uid, remote_host_name, tty, TRUE);
714
            audit_event (AUDIT_USER_LOGIN, username, uid, remote_host_name, tty, TRUE);
Lines 749-755 Link Here
749
            if (!pututxline (&ut))
749
            if (!pututxline (&ut))
750
                g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
750
                g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
751
            endutxent ();
751
            endutxent ();
752
            updwtmpx ("/var/log/wtmp", &ut);
752
            _updwtmpx ("/var/log/wtmp", &ut);
753
753
754
#if HAVE_LIBAUDIT
754
#if HAVE_LIBAUDIT
755
            audit_event (AUDIT_USER_LOGOUT, username, uid, remote_host_name, tty, TRUE);
755
            audit_event (AUDIT_USER_LOGOUT, username, uid, remote_host_name, tty, TRUE);

Return to bug 766866