]> git.eshelyaron.com Git - emacs.git/commitdiff
; Submit changes promised last commit already
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 14 Oct 2015 18:10:14 +0000 (20:10 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 14 Oct 2015 18:10:14 +0000 (20:10 +0200)
lisp/net/tramp-sh.el

index c02287d5ccf5160bc43daebacfb217433b3d596c..1753c73f8694ee8915e4ab2fb4984c190e6f7f00 100644 (file)
@@ -2457,16 +2457,17 @@ The method used must be an out-of-band method."
        (setq source (if t1
                         (tramp-make-copy-program-file-name v)
                       (shell-quote-argument filename))
-             target (funcall
+          target (if t2
+                     (tramp-make-copy-program-file-name v)
+                   (shell-quote-argument
+                    (funcall
                      (if (and (file-directory-p filename)
                               (string-equal
                                (file-name-nondirectory filename)
                                (file-name-nondirectory newname)))
                          'file-name-directory
                        'identity)
-                     (if t2
-                         (tramp-make-copy-program-file-name v)
-                       (shell-quote-argument newname))))
+                     newname))))
 
        ;; Check for host and port number.  We cannot use
        ;; `tramp-file-name-port', because this returns also