bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#11912: 24.1; 'M' in Dired on a symlink does not refresh the display


From: Paul Eggert
Subject: bug#11912: 24.1; 'M' in Dired on a symlink does not refresh the display
Date: Tue, 24 Aug 2021 10:32:01 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 8/24/21 8:40 AM, Lars Ingebrigtsen wrote:

I'm surprised that the `M' command even tries to do the chmod on the
symlink.

Unfortunately the M command doesn't know in advance whether chmod will work on the symlink, as that is platform and filesystem dependent (this is in addition to the usual race-condition problem). So as a practical matter the M command must try the chmod and report the failure somehow. (Perhaps the reporting could be improved; I expect that's low priority.)

A few things:

* I neglected to document this behavior change, so I just now installed the attached to fix that oversight.

* Because of this behavior change, the example Eli gives at the start of Bug#11912 is now obsolete, as the bug has been fixed in a different way. However, as Eli mentioned, there are other commands (like 'O') where the bug is still present.

* And this suggests that some longstanding security and other bugs remain in this area. I plan to file more bug reports that will cite Bug#11912. If the other bugs are fixed, then Bug#11912 should be completely obsolete and can be closed.

Attachment: 0001-Doc-that-dired-do-chmod-no-longer-follows-symlinks.patch
Description: Text Data


reply via email to

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