From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: master 9d626df: Add 'nofollow' flag to set-file-modes etc. Date: Wed, 26 Feb 2020 01:29:01 +0100 Message-ID: <87pne2nqcy.fsf@gmx.de> References: <20200224004617.19362.5846@vcs0.savannah.gnu.org> <20200224004619.58020206ED@vcs0.savannah.gnu.org> <87blpow0s6.fsf@detlef.i-did-not-set--mail-host-address--so-tickle-me> <87k14bni2b.fsf@detlef.i-did-not-set--mail-host-address--so-tickle-me> <34bee2b9-0a34-2a85-15cf-f846888ed144@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="44759"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 26 01:32:28 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j6kcm-000BXk-0t for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Feb 2020 01:32:28 +0100 Original-Received: from localhost ([::1]:36428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6kck-0002hQ-QL for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Feb 2020 19:32:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47596) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6kZk-00020D-Ci for emacs-devel@gnu.org; Tue, 25 Feb 2020 19:29:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6kZj-00005r-Ex for emacs-devel@gnu.org; Tue, 25 Feb 2020 19:29:20 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:45585) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j6kZi-0008PJ-0I for emacs-devel@gnu.org; Tue, 25 Feb 2020 19:29:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1582676943; bh=CFt04HEsG7exxmMsHOEvT07g2oXMrBhp5Dl1H1VOIdU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=OnWHEJTX4h0QL8IzNeAWmDLJ4f1WOccj3jOgpt+5rDJkW8i/dWfENrkX2hAJ7Q2py JBuGNNPcfe0ISwrabzBgnBtoG1a7UkAZwQrbj3NLARtBdlPVEdVKods6+htYJwYfbt KYnmFC+O99TQdTuBsdCAMBaTZCRb3VcPEgZRFtDg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef.gmx.de ([79.140.117.252]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M9Fnj-1j1Ve42z95-006PXP; Wed, 26 Feb 2020 01:29:03 +0100 In-Reply-To: <34bee2b9-0a34-2a85-15cf-f846888ed144@cs.ucla.edu> (Paul Eggert's message of "Tue, 25 Feb 2020 15:02:06 -0800") X-Provags-ID: V03:K1:w58mK78JUWB+pobjDuLY51YUQVHGS3z+59ADoPYP11Zan7yKHx9 3HAsZXOF0ppMg7VfEENVH9qpu4vczasjL4btiKEVZT6Xs+umcrn3zFutrScctsojuCAVMk3 3+bf7kzvYhZfdwPVDQRKtnPmPW/pjHrOd6QtWeKesczSoWaYgKRvUU5o2WVa6quU1x8zxb3 XGc5fjPnJ3z0yHlIsNDVQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:ATntgBIYALw=:Ks+UEysoSwUzC5pCM/2B7z jnzZ4EvWILvQZAkk6zCnJYxIUmUUEshBJwFcwVxgq5K//V2RjonzTFGyq3PlspVC7K6hbRsZ6 cVSicdi2w8/6YTA9EfeHJe7xfkgaiQeeDj8SWYL1Q4BMCJCW3RX0NWKClG/H6FOqu4suR9wyl o+sRIGlRMWXOOPZsj2ItVRnCPncDE3S12Wrd9WYOKMunZvzl81tUuEP+FSDke4Y6FkxeuydiF YvN2nTqTR71WQUymodKrPQPjZQE2PksoODn0LFF8Q96s+op6ogaAPLrPTYkDq5MprnpmQpoUO CXxawPEB/TMgh8OoSGxyUA+Kfox2BjSAsIXiYllbThlnGhCbBuLQ69cVahjh/AKW+1DX/a8y2 Yhv85BQZIVO9oUz/wHsFISe1vPAf6qoQbGy28ibvZPS8o4ZPNIVuHWm5Us8D8WkqVXdKw0iCo P9Wfk/XRHrsT4qyog2c1gLguuONgN9viZe2z1W+7HF5fHE3ID27aiZciER9f5LtEY1YLIBGWf KnajvfZ1ehBJqCag3HR9hnE/RSwoVtMpepeN1cX1g5+NRTNOqUBg/GYD3QVxMNYwbLObxRBdy fb59kc75vSr2JPh8RuUQ+noUx+pjWQYbhMTDCXHqHWR2GIUwejmf2P05/S32jgCowyRnVYIKE 62K4fZIYtLcbv2UFJ/maRHolrubZyc3a41zSt8TOxeXrDwrvjO0DVLDkuWBW7QVfsCORJ9Onu ZOT+FU3gpP/RJUgkn+NDCSskRIwsE5ebR1nRXtQH2qfpWdqB/AaEXofvQ29axTZMbx9/cjrV X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245071 Archived-At: Paul Eggert writes: Hi Paul, > On 2/25/20 1:15 AM, Michael Albinus wrote: >> Shouldn't Tramp behave similar, and raise an error if "chmod -h" or >> something similar does not work? > > Yes and no. If FOO is a symlink and "chmod -h FOO" fails, > set-file-modes should signal an error. But if FOO is a non-symlink > file and "chmod -h FOO" fails on a platform like GNU/Linux where chmod > does not have an -h option, set-file-modes should not signal an error; > it should use plain "chmod FOO" instead. I see. But then there are still problems like bug#39793, which I've reported earlier tonight. "chmod -h" would suffer from the same problem on a remote system with mounted files, I fear. > PS. I followed up the set-file-modes change with a similar proposal > for set-file-times (Bug#39773). I've seen this. Fortunately, "touch -h" is more common, so there shouldn't be a problem for Tramp. Best regards, Michael.