aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2015-10-14 20:10:14 +0200
committerMichael Albinus2015-10-14 20:10:14 +0200
commit8318dec8e167a3c688534e3f9faff862b7e374ac (patch)
treea70b0f0d5092660a23c70929fab10caa8d19e2f6
parent0cced99164baab5b56ee57e6b1dccea21164c85e (diff)
downloademacs-8318dec8e167a3c688534e3f9faff862b7e374ac.tar.gz
emacs-8318dec8e167a3c688534e3f9faff862b7e374ac.zip
; Submit changes promised last commit already
-rw-r--r--lisp/net/tramp-sh.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index c02287d5ccf..1753c73f869 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -2457,16 +2457,17 @@ The method used must be an out-of-band method."
2457 (setq source (if t1 2457 (setq source (if t1
2458 (tramp-make-copy-program-file-name v) 2458 (tramp-make-copy-program-file-name v)
2459 (shell-quote-argument filename)) 2459 (shell-quote-argument filename))
2460 target (funcall 2460 target (if t2
2461 (tramp-make-copy-program-file-name v)
2462 (shell-quote-argument
2463 (funcall
2461 (if (and (file-directory-p filename) 2464 (if (and (file-directory-p filename)
2462 (string-equal 2465 (string-equal
2463 (file-name-nondirectory filename) 2466 (file-name-nondirectory filename)
2464 (file-name-nondirectory newname))) 2467 (file-name-nondirectory newname)))
2465 'file-name-directory 2468 'file-name-directory
2466 'identity) 2469 'identity)
2467 (if t2 2470 newname))))
2468 (tramp-make-copy-program-file-name v)
2469 (shell-quote-argument newname))))
2470 2471
2471 ;; Check for host and port number. We cannot use 2472 ;; Check for host and port number. We cannot use
2472 ;; `tramp-file-name-port', because this returns also 2473 ;; `tramp-file-name-port', because this returns also