]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 24 Dec 2014 08:58:49 +0000 (09:58 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 24 Dec 2014 08:58:49 +0000 (09:58 +0100)
Use `tramp-rsh-end-of-line', it ought to be more robust.

lisp/ChangeLog
lisp/net/tramp-sh.el

index 789f59e1b42774308c549811b296a56e28573da5..22728121a1599c491e9f181d20b25492a5b026f1 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-24  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
+       Use `tramp-rsh-end-of-line', it ought to be more robust.
+
 2014-12-23  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * progmodes/js.el (js-syntax-propertize): "return" can't be divided
index a78d101e3c11e91ca624609b2d751284b5994b3c..444c9a73052f881716f9cc3ab03bae1bf60c4206 100644 (file)
@@ -2456,11 +2456,9 @@ The method used must be an out-of-band method."
                  (tramp-set-connection-property p "vector" orig-vec)
                  (tramp-compat-set-process-query-on-exit-flag p nil)
 
-                 ;; When `shell-file-name' is "cmdproxy", we must adapt
-                 ;; `tramp-local-end-of-line' for sending the password.
-                 (let ((tramp-local-end-of-line
-                        (if (string-match "cmdproxy" shell-file-name)
-                            "\n" tramp-local-end-of-line)))
+                 ;; We must adapt `tramp-local-end-of-line' for
+                 ;; sending the password.
+                 (let ((tramp-local-end-of-line tramp-rsh-end-of-line))
                    (tramp-process-actions
                     p v nil tramp-actions-copy-out-of-band))