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: Mon, 24 Feb 2020 14:52:09 +0100 Message-ID: <87blpow0s6.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="128387"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Paul Eggert To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 24 14:55:12 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 1j6ECW-000XAX-1R for ged-emacs-devel@m.gmane-mx.org; Mon, 24 Feb 2020 14:55:12 +0100 Original-Received: from localhost ([::1]:36710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6ECU-0004CK-QV for ged-emacs-devel@m.gmane-mx.org; Mon, 24 Feb 2020 08:55:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44618) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6EA3-0003cW-P3 for emacs-devel@gnu.org; Mon, 24 Feb 2020 08:52:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6E9z-0000hM-Vk for emacs-devel@gnu.org; Mon, 24 Feb 2020 08:52:39 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:57407) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6E9z-0000g4-Jf for emacs-devel@gnu.org; Mon, 24 Feb 2020 08:52:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1582552343; bh=e03zxcG7E03tn2Su8SgJZX0ff4nD/uBmcYudyX7X5Oc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=Cuhoh21u3gW9bZ1w8pOQjTzAyldWmIMNdiccQU1sjypq3esoZHK967rX/JEFK9sxQ Hew05R1vJ1trh4+bLRjOhQwmUeI6iiInz9tVctpq0uJQTiwFxGdx0cz0ghUOGYytUI u6g0hEbHo/C0IHuWfeDvwFbzI1ZNTf1GsO7cetNI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef ([212.86.43.192]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MAfUe-1jHGmt0z4y-00B7Kf; Mon, 24 Feb 2020 14:52:23 +0100 In-Reply-To: <20200224004619.58020206ED@vcs0.savannah.gnu.org> (Paul Eggert's message of "Sun, 23 Feb 2020 19:46:18 -0500 (EST)") X-Provags-ID: V03:K1:qHMPzm51ibffXFu8Fv0+1n7wFedAqIcwAgNgvyJyC0g9tU/4RHC 9iJ3IjKVox1b4KhJp4z+ZZ4ZN4E1uwOKejofY4CaG6fwxYepWUgsJWbEmVAOPTTrAQlqvtk m2ZGE7jGbMxZLINuQvjjrw7ZKfBljXM0tEah4l1VenxxW19odX4NG11xZqxKh3+OW18BUQU fAmJ2PzUAuvWlLtaTL7Ug== X-UI-Out-Filterresults: notjunk:1;V03:K0:5IE/l+OAIm8=:454u7y/Yi1Zc050FPcvjl2 75zOdCy/yCouCk8hRRkSfVELChZGLsG6OyWzJb16gL84BWnnRaUK74FubntcL+8BGL8VI7eMb xQ48iarKhXRdyva7j5YRHnwz0bbBa9HOUzAyI0WukMFvXqvXMwJB6rsK1HNwblxG7DkUQY+lq KmAYjvggKTGxcPkB3ZE3RMwDGHbHjdqTcueg47Cia/uGyQBUk2iQTK96RkS/G5KNzxDnjpmmT pyOedjNcLj1+YhcC0FHGsZRoDNsnHydB+7TD8FFgkfuQ6lwAGPK5Urda2BId0+5Fsmgv0BN6D dYe8McNNLrxZOtsybiZpKkNSOFgGUldRFB7DFL51pMtbdPEgMVlSOYxOJd/K0gbaHCyWEdvvB Zz26j7c0K+5OD2+LRh1ulP/Qe/lVkQs3IZaWhh4ek90AxLlwQwxNjI0p7mfxM15oVrLTNKFnh szRV57nBVxI7zc+VCSCRzgMAeT9RxFK7B207VSIdr2/5qOAVACDO+HvH8IVPyts/WqXrlyta7 xBo0W1oGn3wVTw5e/7BqA21F7uonTY0JM3er/5MhxYAgNN1zptmXk8dTn7wk6TgBgas6d8E++ RIKVt715KJ60Z4oBx6l+5E6b0uh+8mSDSTvvvW3DIf/daWOthHz+xyqVGLFC1oW+VG1GZ2te/ 3BCPjW4CcZNxsGCoCKgv5tWBXg04P45mZw+7dQYCWPTzAaHNJeYRj7eKmMotqPvVtRrtcTeL9 PDO4eJ+UnyD7I2lF2jYDwVXc+Z/dSS+bTp3eYwhOtM+zjzdLaWjcV06IPak3Mw4oHLYWfeaV X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.22 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:245055 Archived-At: eggert@cs.ucla.edu (Paul Eggert) writes: Hi Paul, > Add 'nofollow' flag to set-file-modes etc. > * lisp/net/tramp-adb.el (tramp-adb-handle-set-file-modes): > * lisp/net/tramp-sh.el (tramp-sh-handle-set-file-modes): > * lisp/net/tramp-smb.el (tramp-smb-handle-set-file-modes): > * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-modes): > Accept an optional FLAG arg that is currently ignored, > and add a FIXME comment for it. I'm currently working on this, and I have problems. For tramp-adb-handle-set-file-modes and tramp-smb-handle-set-file-modes we can simply ignore the flag, because the clients ("adb shell" and "smbclient") do not support such an option for chmod. And I don't expect they will support it in near future. However, for POSIX shells it is different. FreeBSD supports the "chmod -h" argument, which implements nofollow. See . I could check for this argument, and use if possible. 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? Does anybody know, whether there are plans to extend chmod accordingly, for example the version in coreutils? Or is there an alternative possiblity to change the permission of the symbolic link? Best regards, Michael.