diff options
author | Ben Woods <woodsb02@FreeBSD.org> | 2019-02-04 10:28:46 +0000 |
---|---|---|
committer | Ben Woods <woodsb02@FreeBSD.org> | 2019-02-04 10:28:46 +0000 |
commit | b27824336f1f001688ab47f308956391c421b729 (patch) | |
tree | a48a443ea8cad8c5fcaf7e83049f102d9b7b59fb /x11/lightdm/files/patch-src_session-child.c | |
parent | x11/lightdm: Include pkg-message explaining how to fix LightDM coredumps (diff) |
x11/lightdm: Update to 1.28.0
- Also pet portlint
Submitted by: madpilot (partly)
Diffstat (limited to 'x11/lightdm/files/patch-src_session-child.c')
-rw-r--r-- | x11/lightdm/files/patch-src_session-child.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/x11/lightdm/files/patch-src_session-child.c b/x11/lightdm/files/patch-src_session-child.c index 88f5674eb558..ba8fd14b5577 100644 --- a/x11/lightdm/files/patch-src_session-child.c +++ b/x11/lightdm/files/patch-src_session-child.c @@ -1,4 +1,4 @@ ---- src/session-child.c.orig 2017-01-26 21:11:24 UTC +--- src/session-child.c.orig 2018-02-06 23:31:03 UTC +++ src/session-child.c @@ -13,7 +13,6 @@ #include <grp.h> @@ -8,7 +8,7 @@ #include <utmpx.h> #include <sys/mman.h> -@@ -202,29 +201,6 @@ read_xauth (void) +@@ -192,28 +191,6 @@ read_xauth (void) return x_authority_new (x_authority_family, x_authority_address, x_authority_address_length, x_authority_number, x_authority_name, x_authority_data, x_authority_data_length); } @@ -17,7 +17,6 @@ -updwtmpx (const gchar *wtmp_file, struct utmpx *ut) -{ - struct utmp u; -- - memset (&u, 0, sizeof (u)); - u.ut_type = ut->ut_type; - u.ut_pid = ut->ut_pid; @@ -38,7 +37,7 @@ #if HAVE_LIBAUDIT static void audit_event (int type, const gchar *username, uid_t uid, const gchar *remote_host_name, const gchar *tty, gboolean success) -@@ -420,7 +396,6 @@ session_child_run (int argc, char **argv) +@@ -363,7 +340,6 @@ session_child_run (int argc, char **argv) ut.ut_tv.tv_sec = tv.tv_sec; ut.ut_tv.tv_usec = tv.tv_usec; @@ -46,7 +45,7 @@ #if HAVE_LIBAUDIT audit_event (AUDIT_USER_LOGIN, username, -1, remote_host_name, tty, FALSE); -@@ -449,7 +424,7 @@ session_child_run (int argc, char **argv) +@@ -393,7 +369,7 @@ session_child_run (int argc, char **argv) else { /* Set POSIX variables */ @@ -55,15 +54,15 @@ pam_putenv (pam_handle, g_strdup_printf ("USER=%s", username)); pam_putenv (pam_handle, g_strdup_printf ("LOGNAME=%s", username)); pam_putenv (pam_handle, g_strdup_printf ("HOME=%s", user_get_home_directory (user))); -@@ -751,7 +726,6 @@ session_child_run (int argc, char **argv) +@@ -708,7 +684,6 @@ session_child_run (int argc, char **argv) if (!pututxline (&ut)) g_printerr ("Failed to write utmpx: %s\n", strerror (errno)); endutxent (); - updwtmpx ("/var/log/wtmp", &ut); - #if HAVE_LIBAUDIT + #if HAVE_LIBAUDIT audit_event (AUDIT_USER_LOGIN, username, uid, remote_host_name, tty, TRUE); -@@ -792,7 +766,6 @@ session_child_run (int argc, char **argv) +@@ -749,7 +724,6 @@ session_child_run (int argc, char **argv) if (!pututxline (&ut)) g_printerr ("Failed to write utmpx: %s\n", strerror (errno)); endutxent (); |