1 --- lightdm-1.19.3/src/session-child.c.1 2016-08-09 13:29:08.350328243 +0300
2 +++ lightdm-1.19.3/src/session-child.c 2016-08-09 13:33:09.165394372 +0300
4 /* Write record to btmp database */
5 if (authentication_result == PAM_AUTH_ERR)
7 +/* We don't have btmp database */
13 ut.ut_tv.tv_usec = tv.tv_usec;
15 updwtmpx ("/var/log/btmp", &ut);
19 audit_event (AUDIT_USER_LOGIN, username, -1, remote_host_name, tty, FALSE);
21 if (!pututxline (&ut))
22 g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
24 - updwtmpx ("/var/log/wtmp", &ut);
25 + updwtmpx ("/var/adm/wtmpx", &ut);
28 audit_event (AUDIT_USER_LOGIN, username, uid, remote_host_name, tty, TRUE);
30 if (!pututxline (&ut))
31 g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
33 - updwtmpx ("/var/log/wtmp", &ut);
34 + updwtmpx ("/var/adm/wtmpx", &ut);
37 audit_event (AUDIT_USER_LOGOUT, username, uid, remote_host_name, tty, TRUE);