]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp.el (tramp-do-copy-or-rename-file-out-of-band): Set
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 19 Nov 2009 09:25:40 +0000 (09:25 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 19 Nov 2009 09:25:40 +0000 (09:25 +0000)
variables for computing the prompt for reading password.

lisp/ChangeLog
lisp/net/tramp.el

index 833e0ef737bf5c2f2a7b9b4620352f1802446cb9..c7525de9c73ba58b6a20a7f99eaadeebdb04ff2a 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-19  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp.el (tramp-do-copy-or-rename-file-out-of-band): Set
+       variables for computing the prompt for reading password.
+
 2009-11-19  Glenn Morris  <rgm@gnu.org>
 
        * dired-aux.el (dired-compress-file-suffixes): Add ".xz".  (Bug#4953)
index dc755d04a4aa8c5ff7eb5344132338a0b76df6bc..89dca1eed285d9337ffb9a5f7e50d86af0eed13b 100644 (file)
@@ -3804,6 +3804,12 @@ The method used must be an out-of-band method."
          (tramp-error
           v 'file-error "Cannot find copy program: %s" copy-program))
 
+       ;; Set variables for computing the prompt for reading
+       ;; password.
+       (setq tramp-current-method (tramp-file-name-method v)
+             tramp-current-user   (tramp-file-name-user v)
+             tramp-current-host   (tramp-file-name-host v))
+
        (unwind-protect
            (with-temp-buffer
              ;; The default directory must be remote.