From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uIcHLMifkWDkKAAAgWs5BA (envelope-from ) for ; Tue, 04 May 2021 21:26:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iAGQJ8ifkWCgBgAAbx9fmQ (envelope-from ) for ; Tue, 04 May 2021 19:26:00 +0000 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 D02F019E36 for ; Tue, 4 May 2021 21:25:59 +0200 (CEST) Received: from localhost ([::1]:35944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1le0gA-0003vF-Vf for larch@yhetil.org; Tue, 04 May 2021 15:25:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1le0fT-0003uv-DE for emacs-orgmode@gnu.org; Tue, 04 May 2021 15:25:15 -0400 Received: from mout02.posteo.de ([185.67.36.66]:49043) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1le0fO-0004Zq-9t for emacs-orgmode@gnu.org; Tue, 04 May 2021 15:25:15 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 3EACE2400FF for ; Tue, 4 May 2021 21:25:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1620156306; bh=Fi/UecuFs7MTnhMpoMkmUn+NwnX9+vpUOVaPnNBKtJ8=; h=Subject:To:From:Date:From; b=JzbFDRtOa3Ce2gM8qmFOl6TcewOOrm6rmR5/IOEIWGn4Uy/rVO5x77LnsBrlDu2Uo OwRIvB7S/DpZrF+Z4Nb3WhXSxakW4wO8L5N1DqprJyw67D7S63yOyOehgYAySKNciU /mnbVWIP37qDNzucdpybxRoN1cb7TRRl5OQaqzFx0M9O5lhPefa60mCXovACYSW4hG t+K0jtgGY7EbITZ2qIYbQoJhJXwkKZxKUF0KCcw6bhKefL7XG88RkJrsMAhrLYOrlH E0+0REG2fAk4pCOVRXse8hI5EDC2kykjib82vqQKCfdaWRBhITAsUtV8cMDMuI5Ogn OugDIY3XdC+iA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FZVD053X2z6tmH; Tue, 4 May 2021 21:25:04 +0200 (CEST) Subject: Re: Bug: org-babel-tangle: persmission denied when tangling [9.4.5 (9.4.5-gbc2659 @ /home/n/.emacs.d/straight/build/org/)] To: No Wayman , emacs-orgmode@gnu.org References: <875yzy73k0.fsf@gmail.com> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= Message-ID: <1e5a447a-2453-09da-fa51-379c9187b210@posteo.eu> Date: Tue, 4 May 2021 19:25:04 +0000 MIME-Version: 1.0 In-Reply-To: <875yzy73k0.fsf@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr Received-SPF: pass client-ip=185.67.36.66; envelope-from=sebastien.miquel@posteo.eu; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sebastien.miquel@posteo.eu Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620156360; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=pjkC6sqci++zmZXBdDqAfKAOS6c5dlXJR8Eh0Nftvds=; b=NMlv+vU7mQa/kiFmyxp/aQSnzVL4B4v4oqZm07/ZpytOI4eq3hh3opUV1C+rEgCfOvT+Tf SIp60G15f7Qsbf/juzIKDrjWDJanyhmKubRuL/GusQiYXAoY0rx87QYgg6JO89oM8zLiid zaUdlv3eJmNpgA64SA8K2gQ2W2ZCxEiKuvVHWFaEMHPKzbssANtwJremvb6/dhGyAoHED7 qcEjZ03tX09bMtFHqnp31ARSlYbLtm5dv/25AwuiREcUxfd0f00DiBgkoc8cXswJ6PEDAt Fzxl/iNOdabXG4bOhJCFu90u3nS/x6qkGKBhCsqWroze6Gap5947trvp5hig2g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620156360; a=rsa-sha256; cv=none; b=npf5af9mEmu/UJCpTiCIhFECuxd2JmhDWsi3pnODFl2TRIJu3bEUznrygnAuW3L5g0zSPw mTmYq4oSbZ/YgjCWwTZC7TxPYsm1cHcr5lkS+oW4ytmzMIFmzhdSvwjJpIzfg8Oh0F/mGa 5WQcnNriqtB/qHygGiKgqpndM8uulu1KLix69QHQfgJ9pFxopXKs4SE7pSX+05AgK9GUFb b4Uq6o/bxPCelWxPt6zrDYPjj+efr05ddbi41Oi7gWudAom0QPtNfsdsGrr+sKuK5dzGow XR6DQVjVE+GrBW4a+yuKp0xyJnlBNhQH8ucidQAXIFFC4H5OoQO/of8sFD5jdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=JzbFDRtO; dmarc=pass (policy=none) header.from=posteo.eu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.66 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=JzbFDRtO; dmarc=pass (policy=none) header.from=posteo.eu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: D02F019E36 X-Spam-Score: -1.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: xuHqfncjN28d Hi, No Wayman writes: > I'm tangling my early-init/init.el with the :tangle-mode header arg > set to (identity (#o444)). This should be `(identity #o444)` I believe ? > The idea behind this was to prevent myself from accidentally editing > the tangled source files > instead of the Org files. > Unfortunately, since a3cb9b853 there seems to be a behavior change for > org-babel-tangle which prevents this. File permissions are now set before writing to the file, for security reasons. In this case, you remove write permission so emacs fails to write to the file. Perhaps we should try to support this use case. However, even with the previous version, it seems that subsequent tangles should have failed (emacs should fail to delete the previous tangled file). Can you confirm this and explain how you dealt with it ? As a workaround, you could use a file-local `org-babel-post-tangle-hook` to set file permission. Although subsequent tangles will still fail. -- Sébastien Miquel