changeset 106115:94327931be14

* net/tramp.el (tramp-do-copy-or-rename-file-out-of-band): Set variables for computing the prompt for reading password.
author Michael Albinus <michael.albinus@gmx.de>
date Thu, 19 Nov 2009 09:25:19 +0000
parents 9436bfeee055
children 499b069a42da
files lisp/net/tramp.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/net/tramp.el	Thu Nov 19 07:42:20 2009 +0000
+++ b/lisp/net/tramp.el	Thu Nov 19 09:25:19 2009 +0000
@@ -3804,6 +3804,12 @@
 	  (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.