From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#18994: [nix] Preserve supplementary groups of build users (9aed117) Date: Wed, 01 Jul 2015 23:10:52 +0200 Message-ID: <87k2ujmvmr.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAPIc-0003U3-N8 for bug-guix@gnu.org; Wed, 01 Jul 2015 17:12:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAPIZ-0006k2-6C for bug-guix@gnu.org; Wed, 01 Jul 2015 17:12:06 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:35011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAPIZ-0006ji-3a for bug-guix@gnu.org; Wed, 01 Jul 2015 17:12:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZAPIY-0007Rh-Ok for bug-guix@gnu.org; Wed, 01 Jul 2015 17:12:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Charles Strahan's message of "Wed, 01 Jul 2015 12:03:24 -0700") 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-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Charles Strahan Cc: 18994@debbugs.gnu.org, NixOS/nix , NixOS/nix Charles Strahan skribis: > Is there any reason we immediately throw here, instead of checking `ngrou= ps`, resizing the buffer accordingly, and then rerunning `getgrouplist`? I = would think that would be a bit more robust. Sorry, could you quote the code you=E2=80=99re referring to? If you talking about the =E2=80=98getgrouplist=E2=80=99 call, maybe we coul= d do that, but we would still need to put a hard limit on the maximum number of groups anyway. WDYT? Thanks, Ludo=E2=80=99. PS: Please keep 18994@debbugs.gnu.org Cc=E2=80=99d.