From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#24076: [PATCH] gnu: GnuPG: Really use ~/.guix-profile/bin/pinentry by default. Date: Sun, 29 Mar 2020 15:27:46 -0400 Message-ID: <20200329192746.GA16678@jasmine.lan> References: <20160726180507.21e5e8e0@scratchpost.org> <87ftdryzs2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:33907) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIyFb-0004TB-J5 for bug-guix@gnu.org; Mon, 30 Mar 2020 13:31:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIyFa-0005Ob-Ki for bug-guix@gnu.org; Mon, 30 Mar 2020 13:31:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51663) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIyFa-0005OO-Gn for bug-guix@gnu.org; Mon, 30 Mar 2020 13:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jIyFa-0004Q8-DM for bug-guix@gnu.org; Mon, 30 Mar 2020 13:31:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87ftdryzs2.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-mx.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 24076-done@debbugs.gnu.org On Sun, Mar 29, 2020 at 04:57:33PM +0200, Ludovic Courtès wrote: > Here I’d add: > > if (dir == NULL) > { > struct password *pw; > pw = getpwuid (getuid ()); > if (pw != NULL) > dir = pw->pw_dir; > else > dir = "/"; > } > > Otherwise LGTM! Thanks, good idea! Pushed as e5b44b06b3fb19c897fb3e430bd41941905e101f