1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

Make wdired match dired with symlink permissions

* lisp/wdired.el (wdired-do-perm-changes): Do not follow symlinks,
to be consistent with plain dired (bug#50189).
This commit is contained in:
Paul Eggert 2022-09-10 08:20:31 +02:00 committed by Lars Ingebrigtsen
parent 3062baf609
commit d22aacd930

View File

@ -1024,7 +1024,8 @@ Like original function but it skips read-only words."
(setq filename (wdired-get-filename nil t))
(if (= (length perms-new) 10)
(condition-case nil
(set-file-modes filename (wdired-perms-to-number perms-new))
(set-file-modes filename (wdired-perms-to-number perms-new)
'nofollow)
(error
(setq errors (1+ errors))
(dired-log "Setting mode of `%s' to `%s' failed\n\n"