From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#36785: Impossible to pull on foreign distro Date: Wed, 18 Sep 2019 20:35:19 +0200 Message-ID: <87o8zho3ko.fsf@elephly.net> References: <6733C9AB-E5C1-4B63-8F0E-04CD1BB32338@lepiller.eu> <874l39ra37.fsf@gnu.org> <3DC355B8-FE36-4C4E-BBC9-EEC5F580AF0D@lepiller.eu> <87tvb9qktd.fsf@gnu.org> <87woe6fune.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53645) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAeo8-0000FD-VB for bug-guix@gnu.org; Wed, 18 Sep 2019 14:36:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAeo6-0001SM-Ve for bug-guix@gnu.org; Wed, 18 Sep 2019 14:36:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45994) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iAeo6-0001Rg-0h for bug-guix@gnu.org; Wed, 18 Sep 2019 14:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iAeo5-0003Tj-Qg for bug-guix@gnu.org; Wed, 18 Sep 2019 14:36:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87woe6fune.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 36785@debbugs.gnu.org Ludovic Court=C3=A8s writes: > Digging further, I fetched the source from > , and boom! I found the > culprit: it=E2=80=99s called =E2=80=98debian/patches/keep_home_by_default= .patch=E2=80=99. > > --8<---------------cut here---------------start------------->8--- > Description: Set HOME in initial_keepenv_table > Set HOME in initial_keepenv_table; without this, $HOME will never be=20 > preserved unless added to keep_env. There's appropriate logic to handle > resetting the home for -H and -i options, so this is the only part that's > missing. > Author: Steve Langasek > --- a/plugins/sudoers/env.c > +++ b/plugins/sudoers/env.c > @@ -189,6 +189,7 @@ > "COLORS", > "DISPLAY", > "DPKG_COLORS", > + "HOME", > "HOSTNAME", > "KRB5CCNAME", > "LS_COLORS", > --8<---------------cut here---------------end--------------->8--- > > (This patch is playing with fire IMO. If you=E2=80=99re an Ubuntu user, > consider reporting a bug!) Wow. Changing fundamental behaviour like that is bad. > We could apply the patch I posted earlier, which simply disables profile > migration when SUDO_USER is set. That won=E2=80=99t address the fact tha= t root > writes to the user=E2=80=99s ~/.cache, but there=E2=80=99s not much we ca= n do here. This sounds fine to me. --=20 Ricardo