1 --- src/session-child.c.orig
2 +++ src/session-child.c
5 /* GNU provides this but we can't rely on that so let's make our own version */
7 -updwtmpx (const gchar *wtmp_file, struct utmpx *ut)
8 +_updwtmpx (const gchar *wtmp_file, struct utmpx *ut)
11 memset (&u, 0, sizeof (u));
13 ut.ut_tv.tv_sec = tv.tv_sec;
14 ut.ut_tv.tv_usec = tv.tv_usec;
16 - updwtmpx ("/var/log/btmp", &ut);
17 + _updwtmpx ("/var/log/btmp", &ut);
20 audit_event (AUDIT_USER_LOGIN, username, -1, remote_host_name, tty, FALSE);
22 if (!pututxline (&ut))
23 g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
25 - updwtmpx ("/var/log/wtmp", &ut);
26 + _updwtmpx ("/var/log/wtmp", &ut);
29 audit_event (AUDIT_USER_LOGIN, username, uid, remote_host_name, tty, TRUE);
31 if (!pututxline (&ut))
32 g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
34 - updwtmpx ("/var/log/wtmp", &ut);
35 + _updwtmpx ("/var/log/wtmp", &ut);
38 audit_event (AUDIT_USER_LOGOUT, username, uid, remote_host_name, tty, TRUE);