unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Filipp Gunbin <fgunbin@fastmail.fm>
Cc: 20246@debbugs.gnu.org
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	[thread overview]
Message-ID: <87d234kuwg.fsf@gmx.de> (raw)
In-Reply-To: <m2oamq35lr.fsf@fastmail.fm> (Filipp Gunbin's message of "Tue, 14 Apr 2015 21:52:16 +0300")

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.





  reply	other threads:[~2015-04-16 14:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-02 14:10 bug#20246: 25.0.50; Tramp does not show correct error message when ssh refuses to connect to host due to changed host key Filipp Gunbin
2015-04-03 10:05 ` Michael Albinus
2015-04-09 20:07   ` Filipp Gunbin
2015-04-10 14:38     ` Michael Albinus
2015-04-14 18:52       ` Filipp Gunbin
2015-04-16 14:30         ` Michael Albinus [this message]
2015-05-08 10:36           ` Filipp Gunbin
2022-01-24 16:12 ` Lars Ingebrigtsen
2022-02-22  1:05   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d234kuwg.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=20246@debbugs.gnu.org \
    --cc=fgunbin@fastmail.fm \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).