Doc that dired-do-chmod no longer follows symlinks

* doc/emacs/dired.texi (Operating on Files):
* etc/NEWS: Document this security precaution.
This commit is contained in:
Paul Eggert 2021-08-24 10:15:43 -07:00
parent 8620512361
commit 2c8657f4f6
2 changed files with 9 additions and 1 deletions

View file

@ -823,7 +823,9 @@ link.
Change the mode (also called @dfn{permission bits}) of the specified
files (@code{dired-do-chmod}). @var{modespec} can be in octal or
symbolic notation, like arguments handled by the @command{chmod}
program.
program. This command does not follow symbolic links, so it reports
an error if you try to change the mode of a symbolic link on a
platform where such modes are immutable.
@findex dired-do-chgrp
@kindex G @r{(Dired)}

View file

@ -909,6 +909,12 @@ time zones will use a form like "+0100" instead of "CET".
If non-nil, Dired will kill the current buffer when selecting a new
directory to display.
+++
*** Behavior change on 'dired-do-chmod'.
As a security precaution, Dired's M command no longer follows symbolic
links. Instead, it changes the symbolic link's own mode; this always
fails on platforms where such modes are immutable.
---
*** Behavior change on 'dired-clean-confirm-killing-deleted-buffers'.
Previously, if 'dired-clean-up-buffers-too' was non-nil, and