From owner-freebsd-ports@FreeBSD.ORG Sat May 22 11:46:36 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3961E1065674 for ; Sat, 22 May 2010 11:46:36 +0000 (UTC) (envelope-from areilly@bigpond.net.au) Received: from nskntqsrv02p.mx.bigpond.com (nskntqsrv02p.mx.bigpond.com [61.9.168.234]) by mx1.freebsd.org (Postfix) with ESMTP id C34FC8FC0A for ; Sat, 22 May 2010 11:46:35 +0000 (UTC) Received: from nskntotgx01p.mx.bigpond.com ([124.188.161.100]) by nskntmtas03p.mx.bigpond.com with ESMTP id <20100522095238.CZRL23327.nskntmtas03p.mx.bigpond.com@nskntotgx01p.mx.bigpond.com> for ; Sat, 22 May 2010 09:52:38 +0000 Received: from duncan.reilly.home ([124.188.161.100]) by nskntotgx01p.mx.bigpond.com with ESMTP id <20100522095237.PEVX1945.nskntotgx01p.mx.bigpond.com@duncan.reilly.home> for ; Sat, 22 May 2010 09:52:37 +0000 Date: Sat, 22 May 2010 19:52:37 +1000 From: Andrew Reilly To: ports@freebsd.org Message-ID: <20100522095237.GA62670@duncan.reilly.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Authentication-Info: Submitted using SMTP AUTH LOGIN at nskntotgx01p.mx.bigpond.com from [124.188.161.100] using ID areilly@bigpond.net.au at Sat, 22 May 2010 09:52:37 +0000 X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A090201.4BF7A966.009E,ss=1,fgs=0 X-SIH-MSG-ID: qBw6Gdf5TAD0zmQs0WyzOwJxyArnqyN48Z4QX81loRIGTUDCp8DeQ9rAIudRvN+vxDxOJhqMNGQiaa/sTY3Rs9mK Cc: Subject: did sudo change the default sense of env_reset option? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2010 11:46:36 -0000 Hi there, I haven't changed my configuration recently, but I've noticed that sudo processes have stopped inheriting my environment variables like MAKEOBJDIRPREFIX and PORTSDIR. I read the man page, and tried sudo -E, and that brings back the "old" behaviour, but that implies (according to the man page) that my sudoers file has env_reset enabled, and it just doesn't. Hmm. Closer reading of man 5 sudoers says that env_reset is *on* by default. This is new to me. Hmm. More digging in man pages: I need to add Defaults !env_reset under the #Defaults specification line. Any thoughts or suggestions? OK, so I've figured out the answer to my problem now, but since I have seen one other post about the sudden disappearance of MAKEOBJDIRPREFIX, and no obvious conversation about changes to sudo, I'll post this anyway. Hope it helps someone. Cheers, -- Andrew