help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tramp


From: Kai Großjohann
Subject: Re: Tramp
Date: Wed, 25 Sep 2002 16:03:45 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

Michael Albinus <address@hidden> writes:

> It's reproducible here with Tramp 2.0.23. Looks like the recent change
> in acquiring the default method has side effects. For the time being
> you should write the method explicitly like "/telnet:address@hidden:"

Does this patch fix it?

--- tramp.el.~2.227.~   Tue Sep 24 18:21:10 2002
+++ tramp.el    Wed Sep 25 16:03:19 2002
@@ -4331,13 +4331,14 @@
 
 (defun tramp-action-password (p multi-method method user host)
   "Query the user for a password."
+  (let ((pw-prompt (match-string 0)))
   (when (tramp-method-out-of-band-p multi-method method user host)
     (kill-process (get-buffer-process (current-buffer)))
     (error (concat "Out of band method `%s' not applicable "
                   "for remote shell asking for a password")
           method))
   (tramp-message 9 "Sending password")
-  (tramp-enter-password p (match-string 0)))
+  (tramp-enter-password p pw-prompt)))
 
 (defun tramp-action-succeed (p multi-method method user host)
   "Signal success in finding shell prompt."

kai
-- 
~/.signature is: umop 3p!sdn    (Frank Nobis)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]