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: Tue, 25 Feb 2020 10:15:56 +0100 Message-ID: <87k14bni2b.fsf@detlef.i-did-not-set--mail-host-address--so-tickle-me> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="103307"; 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 Tue Feb 25 10:20:32 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 1j6WOG-000Qj4-9m for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Feb 2020 10:20:32 +0100 Original-Received: from localhost ([::1]:50968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6WOF-0004u8-9O for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Feb 2020 04:20:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52328) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6WKO-0001SA-7n for emacs-devel@gnu.org; Tue, 25 Feb 2020 04:16:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6WKN-0003gX-2A for emacs-devel@gnu.org; Tue, 25 Feb 2020 04:16:32 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:37895) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6WKM-0003ek-M5 for emacs-devel@gnu.org; Tue, 25 Feb 2020 04:16:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1582622175; bh=EHuifHHGVJH1xsRpe+9r16WkVRBu2TaYfedH1bLQ0Ak=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=cxp9ZYrcXFjEBpr94aWuVk9R5QGf0hN84WofNGgCQ9AxxfT8ZYT4wdw7en0CdmBSE LJUghUHLURmYjekgm+OBFAlLw64cawzn5nezG/ItHDwN6sYZLgfPRpozObhyA0qs70 PPvJD7mKDwDDZDMg5s/+DOW281ealnA/BjHzt9cI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef ([79.140.112.54]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MkYXs-1jq09o3Vkc-00m47b; Tue, 25 Feb 2020 10:16:14 +0100 In-Reply-To: (Paul Eggert's message of "Mon, 24 Feb 2020 16:25:51 -0800") X-Provags-ID: V03:K1:9IxcvdWA0O/R98vX+FBMs8xf2CjBQutoh5I5hOBQa1xHKBwAyXK mnw/GITKIh7RntzOmhzlbc2Z9qWxXljcqOLuSuyor3I/o6lLckWNZZoKepXQTGMkh3nREDP kDxNSIL2wR6RmvfpEkOGaz7wSoMQpdCOq/eVIX6oL3Dwh7MhYkMJ0iJLNGU87AnmFZNRfml zvPAIMKd3u4O3Rh2ybnHw== X-UI-Out-Filterresults: notjunk:1;V03:K0:QNl0CS2lmus=:fHn5c5ux6ggTd+LUuz/lyp Whniq1aTLKKdcSt/Wca6r2km7nDQo28tk/YUxR5ZqTaB9n/sQuFe4KsJMQSE5Dy5QFasNNP0f zmM4lgJKhDyTR9dzRy6gpCnaZSM++AcWiA+WfHkcgFDDjAVRhWaj+xWBBpSY9v2di399x6Hoe OKTBj1MxVv1j4DvgRgzb/TEiCLulkM5OcOByXnwGPJAx+5OIU2+fJsK5MtkxNcLp+MYjr/RQT O6JNOz9SmaJMs1feJHp3pwcScOwFEU2lD7feyAL7xFAk4F7ETxI0E9zxQZZwnQNGxWXkYqaFV bWDP/4Wa1uSvOtpCl2JDyxIAB0KYpj5mg0eX4RcSxnm6jXNgaKqN98/DwtaseQ8drMUH/9rI1 Kty+ScyVJ+Qm6xcIQi5v7YD75eZEX5mzaMnZI6yEymRTgiZt0Att7B6izW8xkBlrTzS/gmKFp e5ndJiRbniP3gS5woeCeRdBkQ1Vmqg4Yg/naKX21CXdag9plOLnKcaajTgSoZSA2sIUuiUGNR y7U/JMbgAHcris1c0eh35dBaWL19L/H3kxS9BcqKB0f7U7IKSYFSW2JDfNJN6BkRgP3hjijgz AsFhDPn6m4dC808znzvLyU4eSAdcfOX3+C3UeGI1V6/rEHVL/WjSymhOL+W8iCYpELygGaFbZ OxNr41RsWWxXX2EnI2Ixy6klW8codE4XzgRq0hKf3u8y4nm8ljgj+7kzxGg14ycH7YdOBjxHR 7+uNKLdbRbtarU7B8VyHeLLl4q5hOsFuFN4CPCXPq5kTMWzjIpe/XSSDhxWJyqv4GzyBsLdp X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.15 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:245061 Archived-At: Paul Eggert writes: Hi Paul, >> But what shall I do if the target system runs GNU/Linux? chmod(1) >> does not offer any comparable argument. Shall I simply ignore >> nofollow there? > > How about something like this? > > if (chmod -h works); then > chmod -h MODE FILE > elif (test -h works); then > test -h FILE && chmod MODE FILE > else > chmod MODE FILE > fi Hmm. In the Elisp manual, you have added to `set-file-modes': --8<---------------cut here---------------start------------->8--- On platforms that do not support changing mode bits on a symbolic link, this function signals an error when FILENAME is a symbolic link and FLAG is =E2=80=98nofollow=E2=80=99. --8<---------------cut here---------------end--------------->8--- Shouldn't Tramp behave similar, and raise an error if "chmod -h" or something similar does not work? "Equal rights for all" :-) Best regards, Michael.