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

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

bug#20246: 25.0.50; Tramp does not show correct error message when ssh r


From: Filipp Gunbin
Subject: bug#20246: 25.0.50; Tramp does not show correct error message when ssh refuses to connect to host due to changed host key
Date: Fri, 08 May 2015 13:36:38 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin)

On 16/04/2015 16:30 +0200, Michael Albinus wrote:

> Filipp Gunbin <fgunbin@fastmail.fm> writes:
>
>> Michael,
>
> Hi Filipp,
>
>>> Could you, please, apply the following patch:
>>>
>>> *** /home/albinus/src/tramp/lisp/tramp.el.~master~  2015-04-10 
>>> 16:34:06.421074752 +0200
>>> --- /home/albinus/src/tramp/lisp/tramp.el   2015-04-10 16:29:29.236143227 
>>> +0200
>>> ***************
>>> *** 3558,3563 ****
>>> --- 3558,3565 ----
>>>       (tramp-message vec 6 "\n%s" (buffer-string)))
>>>     (unless (eq exit 'ok)
>>>       (tramp-clear-passwd vec)
>>> +     (tramp-flush-directory-property vec "")
>>> +     (tramp-flush-connection-property proc)
>>>       (delete-process proc)
>>>       (tramp-error-with-buffer
>>>        (tramp-get-connection-buffer vec) vec 'file-error
>>>
>>> This changes the behaviour that Tramp doesn't keep its cache anymore,
>>> when there is an error during connection. Tramp reports that the
>>> file/directory doesn't exist, and Emacs falls back to its default
>>> behaviour, offering you a new empty buffer. This sounds consistent.
>>
>> Thanks, I applied the patch (using tramp from git master), but nothing
>> changed.
>>
>> Also, it seems that the error messages start to appear after a smaller
>> period of time than `remote-file-name-inhibit-cache' (which is 10,
>> indeed).
>
> Hmm, strange. Have you tested starting with "emacs -Q"?

Hi Michael, sorry for delay.

I tried with "emacs -Q -L ~/src/tramp/lisp", the result is the same.

Filipp





reply via email to

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