2015-10-02 21:10:42 +00:00
|
|
|
--- ./src/session-child.c.orig 2015-10-02 17:03:43.838859203 -0400
|
|
|
|
+++ ./src/session-child.c 2015-10-02 17:06:55.192871600 -0400
|
|
|
|
@@ -203,7 +203,7 @@
|
2015-09-11 23:09:50 +00:00
|
|
|
|
|
|
|
/* 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 char *wtmp_file, const struct utmpx *ut)
|
|
|
|
{
|
|
|
|
struct utmp u;
|
|
|
|
|
2015-10-02 21:10:42 +00:00
|
|
|
@@ -415,7 +415,7 @@
|
2015-09-11 23:09:50 +00:00
|
|
|
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);
|
|
|
|
|
2015-10-02 21:10:42 +00:00
|
|
|
#if HAVE_LIBAUDIT
|
|
|
|
audit_event (AUDIT_USER_LOGIN, username, -1, remote_host_name, tty, FALSE);
|
|
|
|
@@ -734,7 +734,7 @@
|
2015-09-11 23:09:50 +00:00
|
|
|
if (!pututxline (&ut))
|
|
|
|
g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
|
|
|
|
endutxent ();
|
|
|
|
- updwtmpx ("/var/log/wtmp", &ut);
|
|
|
|
+ _updwtmpx ("/var/log/wtmp", &ut);
|
|
|
|
|
2015-10-02 21:10:42 +00:00
|
|
|
#if HAVE_LIBAUDIT
|
|
|
|
audit_event (AUDIT_USER_LOGIN, username, uid, remote_host_name, tty, TRUE);
|
|
|
|
@@ -774,7 +774,7 @@
|
2015-09-11 23:09:50 +00:00
|
|
|
if (!pututxline (&ut))
|
|
|
|
g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
|
|
|
|
endutxent ();
|
|
|
|
- updwtmpx ("/var/log/wtmp", &ut);
|
|
|
|
+ _updwtmpx ("/var/log/wtmp", &ut);
|
|
|
|
|
2015-10-02 21:10:42 +00:00
|
|
|
#if HAVE_LIBAUDIT
|
|
|
|
audit_event (AUDIT_USER_LOGOUT, username, uid, remote_host_name, tty, TRUE);
|