From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: master 9d626df: Add 'nofollow' flag to set-file-modes etc. Date: Tue, 25 Feb 2020 15:02:06 -0800 Organization: UCLA Computer Science Department Message-ID: <34bee2b9-0a34-2a85-15cf-f846888ed144@cs.ucla.edu> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="64682"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 26 00:03:06 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 1j6jEH-000Git-2P for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Feb 2020 00:03:05 +0100 Original-Received: from localhost ([::1]:35886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6jEG-00022h-4k for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Feb 2020 18:03:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49356) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6jDR-0001Mg-KC for emacs-devel@gnu.org; Tue, 25 Feb 2020 18:02:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6jDP-00056c-2O for emacs-devel@gnu.org; Tue, 25 Feb 2020 18:02:11 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:60056) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j6jDO-0004qJ-Qp for emacs-devel@gnu.org; Tue, 25 Feb 2020 18:02:11 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 39AFE160087; Tue, 25 Feb 2020 15:02:07 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id I62XXpchQxDa; Tue, 25 Feb 2020 15:02:06 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8B84E160091; Tue, 25 Feb 2020 15:02:06 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id wecehgCEkpxa; Tue, 25 Feb 2020 15:02:06 -0800 (PST) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 72295160087; Tue, 25 Feb 2020 15:02:06 -0800 (PST) In-Reply-To: <87k14bni2b.fsf@detlef.i-did-not-set--mail-host-address--so-tickle-me> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 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:245070 Archived-At: 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. (Andreas's recent comment was right as usual, by the way.) PS. I followed up the set-file-modes change with a similar proposal for set-file-times (Bug#39773).