From a0aeb683db136aa59abcc04ea5b77f1fc678b3f4 Mon Sep 17 00:00:00 2001 From: Ben Woods Date: Thu, 6 Jun 2019 23:05:21 +0000 Subject: x11/lightdm: Update to 1.30.0, fix crash and change default config This update addresses a crash in lightdm, related to the way the user environment for the lightdm process is setup in src/process.c. The configuration option in lightdm.conf for locked memory is now honoured - the default configuration has been updated to disable this, and pkg-message has been updated to reflect this change. Changes this release: https://github.com/CanonicalLtd/lightdm/releases/tag/1.30.0 PR: 238083 Submitted by: madpilot Reported by: David.Boyd49@twc.com Differential Revision: https://reviews.freebsd.org/D20541 --- x11/lightdm/files/patch-src_process.c | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) (limited to 'x11/lightdm/files/patch-src_process.c') diff --git a/x11/lightdm/files/patch-src_process.c b/x11/lightdm/files/patch-src_process.c index 3a61886b1dc8..ef18f78fb2a9 100644 --- a/x11/lightdm/files/patch-src_process.c +++ b/x11/lightdm/files/patch-src_process.c @@ -1,20 +1,11 @@ --- src/process.c.orig 2018-08-30 00:28:55 UTC +++ src/process.c -@@ -238,11 +238,16 @@ process_start (Process *process, gboolean block) - - /* Set environment */ - if (priv->clear_environment) -+ { - #ifdef HAVE_CLEARENV - clearenv (); - #else -- environ = NULL; -+ extern char **environ; -+ char *cleanenv[1]; -+ environ = cleanenv; -+ cleanenv[0] = NULL; - #endif -+ } - for (guint i = 0; i < env_length; i++) - setenv (env_keys[i], env_values[i], TRUE); +@@ -73,6 +73,8 @@ static GHashTable *processes = NULL; + static pid_t signal_pid; + static int signal_pipe[2]; ++extern char **environ; ++ + Process * + process_get_current (void) + { -- cgit v1.2.3