rebuild geeqie
[oi-userland.git] / components / desktop / lightdm / patches / 08-wtmpx.patch
blob9aa494863b90283c6fa46d1f6b666fe58b47a95d
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
3 @@ -346,6 +346,8 @@
4 /* Write record to btmp database */
5 if (authentication_result == PAM_AUTH_ERR)
7 +/* We don't have btmp database */
8 +#ifndef __sun__
9 struct utmpx ut;
10 struct timeval tv;
12 @@ -366,6 +366,7 @@
13 ut.ut_tv.tv_usec = tv.tv_usec;
15 updwtmpx ("/var/log/btmp", &ut);
16 +#endif
18 #if HAVE_LIBAUDIT
19 audit_event (AUDIT_USER_LOGIN, username, -1, remote_host_name, tty, FALSE);
20 @@ -710,7 +710,7 @@
21 if (!pututxline (&ut))
22 g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
23 endutxent ();
24 - updwtmpx ("/var/log/wtmp", &ut);
25 + updwtmpx ("/var/adm/wtmpx", &ut);
27 #if HAVE_LIBAUDIT
28 audit_event (AUDIT_USER_LOGIN, username, uid, remote_host_name, tty, TRUE);
29 @@ -751,7 +751,7 @@
30 if (!pututxline (&ut))
31 g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
32 endutxent ();
33 - updwtmpx ("/var/log/wtmp", &ut);
34 + updwtmpx ("/var/adm/wtmpx", &ut);
36 #if HAVE_LIBAUDIT
37 audit_event (AUDIT_USER_LOGOUT, username, uid, remote_host_name, tty, TRUE);