From 90d8ab215b7d36f281c593a34d331d2c92060cf0 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sat, 22 Mar 2025 17:49:53 +0100 Subject: [PATCH] ; Another Tramp fix * lisp/net/tramp.el (tramp-skeleton-file-truename): Remove possible trailing slash. (cherry picked from commit 2658f4eab96aaad7f52245c2422bbfa51db9b207) --- lisp/net/tramp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index db40cbbb820..efd4f3591bc 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -3627,7 +3627,8 @@ BODY is the backend specific code." ;; it for security reasons. (when (tramp-tramp-file-p result) (setq result (file-name-quote result 'top))) - result))))))) + ;; Remove possible trailing slash. + (directory-file-name result)))))))) (defmacro tramp-skeleton-make-directory (dir &optional parents &rest body) "Skeleton for `tramp-*-handle-make-directory'. -- 2.39.5