From: Michael Albinus <michael.albinus@gmx.de>
To: emacs-devel@gnu.org
Cc: Paul Eggert <eggert@cs.ucla.edu>
Subject: Re: master 9d626df: Add 'nofollow' flag to set-file-modes etc.
Date: Mon, 24 Feb 2020 14:52:09 +0100 [thread overview]
Message-ID: <87blpow0s6.fsf@detlef.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <20200224004619.58020206ED@vcs0.savannah.gnu.org> (Paul Eggert's message of "Sun, 23 Feb 2020 19:46:18 -0500 (EST)")
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
<https://www.freebsd.org/cgi/man.cgi?chmod>. 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.
next parent reply other threads:[~2020-02-24 13:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200224004617.19362.5846@vcs0.savannah.gnu.org>
[not found] ` <20200224004619.58020206ED@vcs0.savannah.gnu.org>
2020-02-24 13:52 ` Michael Albinus [this message]
2020-02-25 0:25 ` master 9d626df: Add 'nofollow' flag to set-file-modes etc Paul Eggert
2020-02-25 9:15 ` Michael Albinus
2020-02-25 23:02 ` Paul Eggert
2020-02-26 0:29 ` Michael Albinus
2020-02-25 9:23 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87blpow0s6.fsf@detlef.i-did-not-set--mail-host-address--so-tickle-me \
--to=michael.albinus@gmx.de \
--cc=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.