]> git.eshelyaron.com Git - emacs.git/commit
Tramp: Handle symlinks to non-existing targets better
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 16 Mar 2025 13:17:38 +0000 (14:17 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 17 Mar 2025 11:05:05 +0000 (12:05 +0100)
commita494024283af84899062c4e72bcfd5b8ada80ea5
tree2686f75388ff1f0bce2b6d29c239adf6b98b2015
parent10c6a21a65d3a93a26181112b0b6589d1b45b7fa
Tramp: Handle symlinks to non-existing targets better

* lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
Don't use the truename.

* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file): Refactor.  Handle
symlinks.  (Bug#76678)

* lisp/net/tramp-smb.el (tramp-smb-errors): Add string.
(tramp-smb-handle-copy-file, tramp-smb-handle-rename-file):
Refactor.

* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
Don't use the truename.  Handle symlinks.

* lisp/net/tramp.el (tramp-barf-if-file-missing): Accept also symlinks.
(tramp-skeleton-file-exists-p): Handle non-existing symlink targets.
(tramp-skeleton-set-file-modes-times-uid-gid): Fix typo.

* test/lisp/net/tramp-tests.el (vc-handled-backends):
Suppress only if noninteractive.
(tramp-test11-copy-file, tramp-test12-rename-file)
(tramp-test18-file-attributes, tramp-test21-file-links)
(tramp--test-check-files): Adapt tests.

(cherry picked from commit b8104dadbf285d12c356d4cddd28ac3eaf05f263)
lisp/net/tramp-adb.el
lisp/net/tramp-gvfs.el
lisp/net/tramp-sh.el
lisp/net/tramp-smb.el
lisp/net/tramp-sudoedit.el
lisp/net/tramp.el
test/lisp/net/tramp-tests.el