emacs-diffs
[Top][All Lists]
Advanced

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

master d22aacd930: Make wdired match dired with symlink permissions


From: Lars Ingebrigtsen
Subject: master d22aacd930: Make wdired match dired with symlink permissions
Date: Sat, 10 Sep 2022 02:21:39 -0400 (EDT)

branch: master
commit d22aacd930292e998df1225b2321b4213915cecf
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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).
---
 lisp/wdired.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/wdired.el b/lisp/wdired.el
index 33e0b96f0f..6904bac4d0 100644
--- a/lisp/wdired.el
+++ b/lisp/wdired.el
@@ -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"



reply via email to

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