GNU bug report logs -
#24432
25.1; tramp-cleanup-connection is not removing connection from completion list.
Previous Next
Reported by: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
Date: Wed, 14 Sep 2016 05:38:02 UTC
Severity: normal
Found in version 25.1
Fixed in version 26.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Thierry Volpiatto <thierry.volpiatto <at> gmail.com> writes:
Hi Thierry,
> To reproduce:
> C-x C-f /sudo:: RET
> M-x tramp-cleanup-connection
> Choose connection and RET
>
> The connection is closed (process deleted and buffers killed) but the
> connection is not removed from tramp-cache-data so when doing again
> M-x tramp-cleanup-connection the item still remaining in completion.
Indeed.
> The reason is that tramp try to remove
> ["sudo" "root" "localhost" "" nil] from hash-table
> whereas the key in hash-table is
> ["sudo" "root" "localhost" nil nil]
> This is due to tramp-dissect-file-name that returns
> ["sudo" "root" "localhost" "" nil] instead of
> ["sudo" "root" "localhost" nil nil]
That's not the reason, tramp-{get,set}-connection-property normalize the
vector used in the hash table. But the connection was still there due to
some re-initialization of the connection's hash entry once it was removed.
I've pushed a fix to the master. Could you, pls, check?
Best regards, Michael.
This bug report was last modified 8 years and 230 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.