From owner-svn-ports-branches@freebsd.org Tue Apr 25 03:11:50 2017 Return-Path: Delivered-To: svn-ports-branches@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F9E7D4E185; Tue, 25 Apr 2017 03:11:50 +0000 (UTC) (envelope-from woodsb02@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E9BAE1A5B; Tue, 25 Apr 2017 03:11:49 +0000 (UTC) (envelope-from woodsb02@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3P3BmDh024570; Tue, 25 Apr 2017 03:11:48 GMT (envelope-from woodsb02@FreeBSD.org) Received: (from woodsb02@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3P3Bm3P024568; Tue, 25 Apr 2017 03:11:48 GMT (envelope-from woodsb02@FreeBSD.org) Message-Id: <201704250311.v3P3Bm3P024568@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: woodsb02 set sender to woodsb02@FreeBSD.org using -f From: Ben Woods Date: Tue, 25 Apr 2017 03:11:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r439357 - in branches/2017Q2/x11/lightdm: . files X-SVN-Group: ports-branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Apr 2017 03:11:50 -0000 Author: woodsb02 Date: Tue Apr 25 03:11:48 2017 New Revision: 439357 URL: https://svnweb.freebsd.org/changeset/ports/439357 Log: MFH: r438362 x11/lightdm: Use correct replacement for clearenv() The previous patch to replace the Linux clearenv(3) function did not actually clear the environment, but instead created a new environment variable named environ with the value "NULL". PR: 218564 Reported by: jbeich Obtained from: FreeBSD env(1) command Approved by: ports-secteam (junovitch) Modified: branches/2017Q2/x11/lightdm/Makefile branches/2017Q2/x11/lightdm/files/patch-src_process.c Directory Properties: branches/2017Q2/ (props changed) Modified: branches/2017Q2/x11/lightdm/Makefile ============================================================================== --- branches/2017Q2/x11/lightdm/Makefile Tue Apr 25 02:53:03 2017 (r439356) +++ branches/2017Q2/x11/lightdm/Makefile Tue Apr 25 03:11:48 2017 (r439357) @@ -3,7 +3,7 @@ PORTNAME= lightdm PORTVERSION= 1.20.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= x11 MASTER_SITES= https://launchpad.net/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}/+download/ Modified: branches/2017Q2/x11/lightdm/files/patch-src_process.c ============================================================================== --- branches/2017Q2/x11/lightdm/files/patch-src_process.c Tue Apr 25 02:53:03 2017 (r439356) +++ branches/2017Q2/x11/lightdm/files/patch-src_process.c Tue Apr 25 03:11:48 2017 (r439357) @@ -1,11 +1,20 @@ ---- src/process.c.orig 2016-12-08 21:38:14 UTC +--- src/process.c.orig 2017-04-12 15:33:03 UTC +++ src/process.c -@@ -231,7 +231,7 @@ process_start (Process *process, gboolea +@@ -228,11 +228,16 @@ process_start (Process *process, gboolean block) + + /* Set environment */ + if (process->priv->clear_environment) ++ { #ifdef HAVE_CLEARENV clearenv (); #else - environ = NULL; -+ putenv ("environ=NULL"); ++ extern char **environ; ++ char *cleanenv[1]; ++ environ = cleanenv; ++ cleanenv[0] = NULL; #endif ++ } for (i = 0; i < env_length; i++) setenv (env_keys[i], env_values[i], TRUE); +