From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IFvKGQlFkWJ4BwEAbAwnHQ (envelope-from ) for ; Fri, 27 May 2022 23:39:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qJjDGQlFkWIsnwAAauVa8A (envelope-from ) for ; Fri, 27 May 2022 23:39:21 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 11D191AA25 for ; Fri, 27 May 2022 23:39:20 +0200 (CEST) Received: from localhost ([::1]:43512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuhfz-0000H9-Pw for larch@yhetil.org; Fri, 27 May 2022 17:39:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuhdm-0007Gh-O3 for guix-patches@gnu.org; Fri, 27 May 2022 17:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42039) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuhdm-0002EN-ES for guix-patches@gnu.org; Fri, 27 May 2022 17:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nuhdm-0000s4-CX for guix-patches@gnu.org; Fri, 27 May 2022 17:37:02 -0400 Subject: bug#55577: [PATCH] Check substitute --help or --version options early Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Fri, 27 May 2022 21:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 55577 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: yarl-baudig@mailoo.org Cc: 55577-done@debbugs.gnu.org Mail-Followup-To: 55577@debbugs.gnu.org, ludo@gnu.org, yarl-baudig@mailoo.org Received: via spool by 55577-done@debbugs.gnu.org id=D55577.16536873943308 (code D ref 55577); Fri, 27 May 2022 21:37:02 +0000 Received: (at 55577-done) by debbugs.gnu.org; 27 May 2022 21:36:34 +0000 Received: from localhost ([127.0.0.1]:35935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuhdK-0000rI-3m for submit@debbugs.gnu.org; Fri, 27 May 2022 17:36:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuhdH-0000r4-Qx for 55577-done@debbugs.gnu.org; Fri, 27 May 2022 17:36:32 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuhdB-000275-SH; Fri, 27 May 2022 17:36:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=z/S/tjI7ceBvgsnONRidUNL34F515NJXtsP+KYZL7DQ=; b=nidrye/a08e6Njg5B9cC TtydVXm330eEleHh489Tm6oGWj/IzeG32pM9I1q98/g2iQjOiYhsxAx18XjfKDTcR5ggBSIWcQePx RtjQoMyVU7+6y0ZbLl5/qpCHI30earqza8qaBNAyxuz97ZHiyBFXvLBTH6Lq8iJ/H6UoOMkvI6H/J qSkRNLzuKBd1QDdG6G2KDtR5JRx94Ra5EFoE3puJkpMU4vFd2C8hkljmfijuIrJAuQOHsY0lGtcIj SxC0tdI0FNraTR5XAiYzoXaSfMeUfCl8GNWZ69BcdCnUinBuNgh0UH4tGamm7LeXgsC0hXt6FLrv5 1DDVTFkebUP8qg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:49394 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuhdB-00012n-GN; Fri, 27 May 2022 17:36:25 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Fri, 27 May 2022 23:36:23 +0200 In-Reply-To: (yarl-baudig@mailoo.org's message of "Sun, 22 May 2022 15:54:42 +0200 (CEST)") Message-ID: <878rqmd5ew.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653687561; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=z/S/tjI7ceBvgsnONRidUNL34F515NJXtsP+KYZL7DQ=; b=fBM+CqwhCXQaRMTmy25zQVbGSrXXJLRDZUlvDjQ3OQUeaPBlJ2beDQnAYuqvAuXfwtGHiv ycyBt32GK1qNXAPm5A1O2M4UF2t7+376OugX1eb+aCwvi3VtbAmYRYUUDgJ/zG5jvZCeGp UKr0tyfZpLUlwRhm3XqCtd8K5QxLqQyny6/ynOn/61Xep4HpjCuqJHWwmuN/jXxMwj3k33 5h6t1nhYUU9/Q9kn4EaLFS74bPjELtGNK0bN7WqYu4AmuWr2g8s7gSyu33e5rszikf8wt1 gbJbqWTpSwNq+CavXzqQUB9uM5WjPDMjEa5ZOt3UGUpLMVU9gCvbPgUi+YiY5w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653687561; a=rsa-sha256; cv=none; b=rWvVUngmERK0n3trPlj51HatY1sW1xRaCK0Qbwb8FQiGp5aIRjATsK4nPZf5w1uCdBL8Sn 1qE037e0s8KMqnRrk8AiXL3HdQytCMWyPTkdeTOjFFBMqTSi3b4ksgJd/8aB50NdilOdUU InvtTUcpfYMdJ+GskGpmoJOUNVYnCSox+Eso7FHO3BNZkCQTba+OT2dl8H0S1ncS2pt2tn noM7R16Knnd5mMW/VdA99aNrdDr3NgR1v0L+7Q2R7njC1B8Xg0Szy/zhJ6QUT4e6kp3czg XKdhNl4mC+ec6NokgVYiQXc/66aFGS84RjMaCXhzwb/x9da2da4Kvd78q7OO/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="nidrye/a"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="nidrye/a"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 11D191AA25 X-Spam-Score: -4.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: XZAFcO6Qmrvx Hi, yarl-baudig@mailoo.org skribis: > Running `guix archive --authorize` sets /etc/guix/acl to 600 > via with-atomic-file-output via mkstemp!. > Then running `guix substitute --help/--version` fails on "permission deni= ed". > While "guix substitute" is an internal tool, the options --help and --ver= sion > exist and you should be able to run those from the command line. > > * guix/scripts/substitute.scm: earlier check for --help or --version. Applied, thanks! Ludo=E2=80=99.