39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
--- ./src/session-child.c.orig 2015-09-11 18:01:00.262401041 -0400
|
|
+++ ./src/session-child.c 2015-09-11 18:02:23.249398508 -0400
|
|
@@ -199,7 +199,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 char *wtmp_file, const struct utmpx *ut)
|
|
{
|
|
struct utmp u;
|
|
|
|
@@ -385,7 +385,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);
|
|
}
|
|
|
|
/* Check account is valid */
|
|
@@ -700,7 +700,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);
|
|
}
|
|
|
|
waitpid (child_pid, &return_code, 0);
|
|
@@ -736,7 +736,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);
|
|
}
|
|
}
|
|
|