[Top][All Lists]

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

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

From: Michael Albinus
Subject: Re: master 9d626df: Add 'nofollow' flag to set-file-modes etc.
Date: Wed, 26 Feb 2020 01:29:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

Hi Paul,

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

I see. But then there are still problems like bug#39793, which I've
reported earlier tonight. "chmod -h" would suffer from the same problem
on a remote system with mounted files, I fear.

> PS. I followed up the set-file-modes change with a similar proposal
> for set-file-times (Bug#39773).

I've seen this. Fortunately, "touch -h" is more common, so there
shouldn't be a problem for Tramp.

Best regards, Michael.

reply via email to

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