[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: |
Michael Albinus |
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: |
Thu, 16 Apr 2015 16:30:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
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"?
> Filipp
Best regards, Michael.