38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
--- src/session-child.c.orig
|
|
+++ src/session-child.c
|
|
@@ -194,7 +194,7 @@
|
|
|
|
/* GNU provides this but we can't rely on that so let's make our own version */
|
|
static void
|
|
-updwtmpx (const gchar *wtmp_file, struct utmpx *ut)
|
|
+_updwtmpx (const gchar *wtmp_file, struct utmpx *ut)
|
|
{
|
|
struct utmp u;
|
|
memset (&u, 0, sizeof (u));
|
|
@@ -363,7 +363,7 @@
|
|
ut.ut_tv.tv_sec = tv.tv_sec;
|
|
ut.ut_tv.tv_usec = tv.tv_usec;
|
|
|
|
- updwtmpx ("/var/log/btmp", &ut);
|
|
+ _updwtmpx ("/var/log/btmp", &ut);
|
|
|
|
#if HAVE_LIBAUDIT
|
|
audit_event (AUDIT_USER_LOGIN, username, -1, remote_host_name, tty, FALSE);
|
|
@@ -708,7 +708,7 @@
|
|
if (!pututxline (&ut))
|
|
g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
|
|
endutxent ();
|
|
- updwtmpx ("/var/log/wtmp", &ut);
|
|
+ _updwtmpx ("/var/log/wtmp", &ut);
|
|
|
|
#if HAVE_LIBAUDIT
|
|
audit_event (AUDIT_USER_LOGIN, username, uid, remote_host_name, tty, TRUE);
|
|
@@ -749,7 +749,7 @@
|
|
if (!pututxline (&ut))
|
|
g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
|
|
endutxent ();
|
|
- updwtmpx ("/var/log/wtmp", &ut);
|
|
+ _updwtmpx ("/var/log/wtmp", &ut);
|
|
|
|
#if HAVE_LIBAUDIT
|
|
audit_event (AUDIT_USER_LOGOUT, username, uid, remote_host_name, tty, TRUE);
|