From: Michael Albinus Date: Mon, 12 Jul 2021 13:49:50 +0000 (+0200) Subject: Fix a problem with tramp-*-process-file X-Git-Tag: emacs-28.0.90~1893 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bfd159539f112785ed215cfd2abb2e2e1f2ea1f6;p=emacs.git Fix a problem with tramp-*-process-file * lisp/net/tramp-adb.el (tramp-adb-handle-process-file): * lisp/net/tramp-sh.el (tramp-sh-handle-process-file): * lisp/net/tramp-smb.el (tramp-smb-handle-process-file): * lisp/net/tramp-sshfs.el (tramp-sshfs-handle-process-file): Use `(expand-file-name default-directory)'. --- diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index 63fd5eb06a3..dbbbfe6a3f9 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el @@ -803,7 +803,7 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." (when (and (numberp destination) (zerop destination)) (error "Implementation does not handle immediate return")) - (with-parsed-tramp-file-name default-directory nil + (with-parsed-tramp-file-name (expand-file-name default-directory) nil (let (command input tmpinput stderr tmpstderr outbuf ret) ;; Compute command. (setq command (mapconcat #'tramp-shell-quote-argument diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index e5929bd366a..3595bd26557 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -3029,7 +3029,7 @@ implementation will be used." (when (and (numberp destination) (zerop destination)) (error "Implementation does not handle immediate return")) - (with-parsed-tramp-file-name default-directory nil + (with-parsed-tramp-file-name (expand-file-name default-directory) nil (let (command env uenv input tmpinput stderr tmpstderr outbuf ret) ;; Compute command. (setq command (mapconcat #'tramp-shell-quote-argument diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el index d3de0455dd0..1c7ddee0086 100644 --- a/lisp/net/tramp-smb.el +++ b/lisp/net/tramp-smb.el @@ -1259,7 +1259,7 @@ component is used as the target of the symlink." (when (and (numberp destination) (zerop destination)) (error "Implementation does not handle immediate return")) - (with-parsed-tramp-file-name default-directory nil + (with-parsed-tramp-file-name (expand-file-name default-directory) nil (let* ((name (file-name-nondirectory program)) (name1 name) (i 0) diff --git a/lisp/net/tramp-sshfs.el b/lisp/net/tramp-sshfs.el index f4872cef10c..5f6807a0db7 100644 --- a/lisp/net/tramp-sshfs.el +++ b/lisp/net/tramp-sshfs.el @@ -235,7 +235,7 @@ arguments to pass to the OPERATION." (when (and (numberp destination) (zerop destination)) (error "Implementation does not handle immediate return")) - (with-parsed-tramp-file-name default-directory nil + (with-parsed-tramp-file-name (expand-file-name default-directory) nil (let ((command (format "cd %s && exec %s"