From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0MU4InwXVGETWAEAgWs5BA (envelope-from ) for ; Wed, 29 Sep 2021 09:36:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IDXiHXwXVGF/VQAAB5/wlQ (envelope-from ) for ; Wed, 29 Sep 2021 07:36:28 +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 296E3BEB7 for ; Wed, 29 Sep 2021 09:36:28 +0200 (CEST) Received: from localhost ([::1]:34770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVU8g-0004pf-Am for larch@yhetil.org; Wed, 29 Sep 2021 03:36:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVU6j-0004pN-2L; Wed, 29 Sep 2021 03:34:25 -0400 Received: from secure.cowgar.com ([209.160.64.5]:51346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVU6h-0001wB-3A; Wed, 29 Sep 2021 03:34:24 -0400 Received: from www-data by secure.cowgar.com with local (Exim 4.89) (envelope-from ) id 1mVTVK-0001BV-UI; Wed, 29 Sep 2021 02:55:46 -0400 To: tomas@tuxteam.de Subject: Re: [PATCH] Treat :tangle-mode as an octal value not integer X-PHP-Originating-Script: 501:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 29 Sep 2021 02:55:46 -0400 From: Jeremy Cowgar In-Reply-To: <20210929063925.GA6367@tuxteam.de> References: <20210928145448.245883-1-jeremy@cowgar.com> <20210929063925.GA6367@tuxteam.de> Message-ID: <7e1c208b9fa8845adff5e3c45d6f086b@cowgar.com> X-Sender: jeremy@cowgar.com User-Agent: Roundcube Webmail/1.0.3 Received-SPF: none client-ip=209.160.64.5; envelope-from=www-data@secure.cowgar.com; helo=secure.cowgar.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=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: , Cc: Emacs-orgmode , emacs-orgmode@gnu.org 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=1632900988; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=MHEzvSejLsxXeSPjllQNcMtmskSoXR8RvC6FjB/nboc=; b=dFHcpKAdJegR+TaJKHStT9HdBA0HXeAauwmfcmCtwUF6Y/mJ0xwN32JIW3jLypDAv8TQrI IBmcyitcBeHaxeucN73yEtUHtu4h5fdeqkf/FB7g3MUR5ouXDVCBeDEabAns+r9BTE0kYh hMDw89hDYi/1dE/k/nFLiz54qNPMY+0OfCtOT6gcXP1yODSagckFOpaEX7TW2nhPbc/ieO lam75P5dVVr8zsEFPfPgukjJaOYFirKKCFi4oPMOGAMxczhDkRJl2s8so5gIQrShp3P0Uq oWUGChfpZ/57OYTzXmKxKO89e68ULlBJlNX0RaoLspy/uBUY0lJgQme4aqfq/g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632900988; a=rsa-sha256; cv=none; b=OcIQg+Ql2rzHjmb/WP8docWJvCAGNd7V86NWulkfmMByIFIq10T19il062H+Aq3HDMjFMy Gmsvm9ZzWJJaLGgmFoHLvg+OHAqy6dzGNVdA5YmkZYvR86q/uKO7WLAmlTuSfK7CGqnqjp 5k7lJ87nryTfSG4HJ+teJvYcFxHWA68hc9t8oWKWyDuGAeCEA/v5YGpICUzERUlAoeprC2 Sh3+Np3qqvDVNBLoy9B3KTsGeGb3GrD/AD3Zow/dJQoIAR9uwuWNE1VLHcMZRegdGYRUuy sWwlEtPvM1wANjanz7RyYhUreXFEq54AHx+4vGQRxw7Xb3V8b3fMdFq+9WaE5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -2.80 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 296E3BEB7 X-Spam-Score: -2.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: OvQQMuos3O1p On 2021-09-29 02:39, tomas@tuxteam.de wrote: > On Tue, Sep 28, 2021 at 10:54:48AM -0400, Jeremy Cowgar wrote: >> As an org user I would expect :tangle-mode 0660 to produce a file that >> has user rw, group rw, other nothing. Instead, what really happens >> currently is 0660 is treated as an integer which is actually >> 3140. This produces unexpected file permissions. >> > > Hm. This looks dangerous: interpreting an integer as octal just > due to the context? > > I do understand why, but still... > > Why not recommend Elisp's explicit syntax for octal representation, > i.e. :tangle-mode #o660? And put a prominent note in the docs, > of course. Are you suggesting this currently works or that the patch should be changed to make that work? A quick try on my local system (pre-patch), I receive the error: Wrong type argument: fixnump, "#o660" -- Jeremy