<div dir="ltr">Thanks for making the patch, however this has already been fixed in LightDM 1.6.3.<br></div><br><div class="gmail_quote"><div dir="ltr">On Tue, 6 Oct 2015 at 09:02 Joakim Tjernlund <<a href="mailto:joakim.tjernlund@transmode.se">joakim.tjernlund@transmode.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A few places are missing #if HAVE_LIBAUDIT wrapped around them.<br>
This patch fixes the build.<br>
<br>
--- src/<a href="http://session-child.c.org" rel="noreferrer" target="_blank">session-child.c.org</a> 2015-10-01 20:51:35.830722781 +0200<br>
+++ src/session-child.c 2015-10-01 20:54:09.539968600 +0200<br>
@@ -416,8 +416,9 @@<br>
ut.ut_tv.tv_usec = tv.tv_usec;<br>
<br>
updwtmpx ("/var/log/btmp", &ut);<br>
-<br>
+#if HAVE_LIBAUDIT<br>
audit_event (AUDIT_USER_LOGIN, username, -1, remote_host_name, tty, FALSE);<br>
+#endif<br>
}<br>
<br>
/* Check account is valid */<br>
@@ -733,8 +734,9 @@<br>
g_printerr ("Failed to write utmpx: %s\n", strerror (errno));<br>
endutxent ();<br>
updwtmpx ("/var/log/wtmp", &ut);<br>
-<br>
+#if HAVE_LIBAUDIT<br>
audit_event (AUDIT_USER_LOGIN, username, uid, remote_host_name, tty, TRUE);<br>
+#endif<br>
}<br>
<br>
waitpid (child_pid, &return_code, 0);<br>
@@ -771,8 +773,9 @@<br>
g_printerr ("Failed to write utmpx: %s\n", strerror (errno));<br>
endutxent ();<br>
updwtmpx ("/var/log/wtmp", &ut);<br>
-<br>
+#if HAVE_LIBAUDIT<br>
audit_event (AUDIT_USER_LOGOUT, username, uid, remote_host_name, tty, TRUE);<br>
+#endif<br>
}<br>
}<br>
<br>
_______________________________________________<br>
LightDM mailing list<br>
<a href="mailto:LightDM@lists.freedesktop.org" target="_blank">LightDM@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/lightdm" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/lightdm</a><br>
</blockquote></div>