[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: |
Tue, 14 Apr 2015 21:52:16 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin) |
Michael,
On 10/04/2015 16:38 +0200, Michael Albinus wrote:
> 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).
Filipp