diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2021-05-06 17:15:30 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2021-05-06 17:15:30 +0200 |
commit | b6f5da3240170fb9750a3304e4b8fa04fe7f2268 (patch) | |
tree | a73491c1a2393290bbdc7433f746f8a185cc6d4b /lisp/net/tramp.el | |
parent | 7f317868c5a1be8dd591cd26815e2b34896d31f0 (diff) | |
download | emacs-b6f5da3240170fb9750a3304e4b8fa04fe7f2268.tar.gz emacs-b6f5da3240170fb9750a3304e4b8fa04fe7f2268.tar.bz2 emacs-b6f5da3240170fb9750a3304e4b8fa04fe7f2268.zip |
In Tramp, use scp "-T" argument if available
* lisp/net/tramp-sh.el (tramp-scp-strict-file-name-checking): New defvar.
(tramp-scp-strict-file-name-checking): New defun.
(tramp-do-copy-or-rename-file-out-of-band): Use it.
(tramp-methods) <scp, scpx>: Use "%x".
(tramp-make-copy-program-file-name): Use local quoting.
(tramp-sh-handle-make-process): Don't call
`tramp-maybe-open-connection', this happens implicitly by
`tramp-send-command'.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
* test/lisp/net/tramp-tests.el (tramp-test40-special-characters)
(tramp-test40-special-characters-with-stat)
(tramp-test40-special-characters-with-perl)
(tramp-test40-special-characters-with-ls): Don't skip for
`tramp--test-windows-nt-and-scp-p'.
Diffstat (limited to 'lisp/net/tramp.el')
-rw-r--r-- | lisp/net/tramp.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 015f458a63c..741ea05ceaf 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -252,6 +252,8 @@ pair of the form (KEY VALUE). The following KEYs are defined: - \"%c\" adds additional `tramp-ssh-controlmaster-options' options for the first hop. - \"%n\" expands to \"2>/dev/null\". + - \"%x\" is replaced by the `tramp-scp-strict-file-name-checking' + argument if it is supported. The existence of `tramp-login-args', combined with the absence of `tramp-copy-args', is an indication that the |