emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 9d626df: Add 'nofollow' flag to set-file-modes etc.


From: Paul Eggert
Subject: Re: master 9d626df: Add 'nofollow' flag to set-file-modes etc.
Date: Tue, 25 Feb 2020 15:02:06 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0

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).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]