python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / lightdm / patches / musl-updwtmpx.patch
blobd96f518cdc589e88c805f12801d95352b38f94af
1 --- src/session-child.c.orig
2 +++ src/session-child.c
3 @@ -194,7 +194,7 @@
5 /* GNU provides this but we can't rely on that so let's make our own version */
6 static void
7 -updwtmpx (const gchar *wtmp_file, struct utmpx *ut)
8 +_updwtmpx (const gchar *wtmp_file, struct utmpx *ut)
10 struct utmp u;
11 memset (&u, 0, sizeof (u));
12 @@ -363,7 +363,7 @@
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);
19 #if HAVE_LIBAUDIT
20 audit_event (AUDIT_USER_LOGIN, username, -1, remote_host_name, tty, FALSE);
21 @@ -708,7 +708,7 @@
22 if (!pututxline (&ut))
23 g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
24 endutxent ();
25 - updwtmpx ("/var/log/wtmp", &ut);
26 + _updwtmpx ("/var/log/wtmp", &ut);
28 #if HAVE_LIBAUDIT
29 audit_event (AUDIT_USER_LOGIN, username, uid, remote_host_name, tty, TRUE);
30 @@ -749,7 +749,7 @@
31 if (!pututxline (&ut))
32 g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
33 endutxent ();
34 - updwtmpx ("/var/log/wtmp", &ut);
35 + _updwtmpx ("/var/log/wtmp", &ut);
37 #if HAVE_LIBAUDIT
38 audit_event (AUDIT_USER_LOGOUT, username, uid, remote_host_name, tty, TRUE);