Fix 'vc-dir-resynch-file' (bug#80803)

* lisp/vc/vc-dir.el (vc-dir-resynch-file): Apply 'file-truename'
instead of 'expand-file-name' to FNAME argument to prevent
spurious display of symlinked files in *vc-dir* buffer.
This commit is contained in:
Stephen Berman 2026-05-02 15:11:37 +02:00
parent e420725935
commit e05fab5775

View file

@ -1305,7 +1305,7 @@ that file."
(defun vc-dir-resynch-file (&optional fname)
"Update the entries for FNAME in any directory buffers that list it."
(let ((file (expand-file-name (or fname buffer-file-name)))
(let ((file (file-truename (or fname buffer-file-name)))
(drop '()))
(save-current-buffer
;; look for a vc-dir buffer that might show this file.