From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: =?utf-8?B?4oCYc3Vkb+KAmQ==?= leaves PATH =?utf-8?Q?unchanged?= =?utf-8?Q?=E2=80=A6?= so what? Date: Sat, 19 Jan 2019 23:55:09 +0100 Message-ID: <87y37gp8aa.fsf@gnu.org> References: <87y37jwp1p.fsf@gnu.org> <87h8e7h6yd.fsf@elephly.net> <87r2dbv4w0.fsf@gnu.org> <87zhryv3l5.fsf@roquette.mug.biscuolo.net> <87fttqfmnm.fsf@elephly.net> <87d0ouuro2.fsf@roquette.mug.biscuolo.net> <20190118212928.452ed4e1@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:51267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkzWC-0003LT-KK for guix-devel@gnu.org; Sat, 19 Jan 2019 17:55:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkzWB-0007AY-Se for guix-devel@gnu.org; Sat, 19 Jan 2019 17:55:12 -0500 Received: from hera.aquilenet.fr ([2a0c:e300::1]:34126) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gkzWB-0007A6-Lp for guix-devel@gnu.org; Sat, 19 Jan 2019 17:55:11 -0500 In-Reply-To: <20190118212928.452ed4e1@scratchpost.org> (Danny Milosavljevic's message of "Fri, 18 Jan 2019 21:29:28 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel@gnu.org Danny Milosavljevic skribis: > There's an environment variable "SUDO_USER" which still contains the name > of the original user. > > We could check SUDO_USER instead of USER if USER=3Droot, otherwise check = USER. Or perhaps we could ignore HOME when SUDO_USER is set, and instead honor /etc/passwd only? Ludo=E2=80=99.