GNU bug report logs -
#20246
25.0.50; Tramp does not show correct error message when ssh refuses to connect to host due to changed host key
Previous Next
Reported by: Filipp Gunbin <fgunbin <at> fastmail.fm>
Date: Thu, 2 Apr 2015 14:11:01 UTC
Severity: normal
Tags: moreinfo
Found in version 25.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 20246 <at> debbugs.gnu.org (full text, mbox):
On 16/04/2015 16:30 +0200, Michael Albinus wrote:
> Filipp Gunbin <fgunbin <at> 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
This bug report was last modified 3 years and 147 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.