tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp (2.2.13.25.2); tramp is confused by subdomains


From: Michael Albinus
Subject: Re: tramp (2.2.13.25.2); tramp is confused by subdomains
Date: Mon, 06 May 2019 16:51:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Jon Schewe <address@hidden> writes:

Hi Jon,

> I connect to one host with /ssh:tld.com|sudo:address@hidden:
> I connect to a second host with
> /ssh:address@hidden|sudo:address@hidden:
>
> Initially everything is OK. However after the connections time out and I
> want to reconnect I find that connecting to
> /ssh:address@hidden|sudo:address@hidden: prompts me for the password
> for ssh:tld.com instead of ssh:address@hidden I also find that the
> files that I see are on tld.com instead of sub.tld.com.
>
> I have tried cleaning up all connections and all buffers and I still get
> prompted for the wrong host until I restart emacs.

Could you pls try the following patch?

*** /tmp/ediffV4aqHb    2019-05-06 16:49:03.257188246 +0200
--- /home/albinus/src/tramp-2-2-stable/lisp/tramp-sh.el 2019-05-06 
16:48:47.418517031 +0200
***************
*** 4641,4648 ****
        ;; Add the hop.
        (add-to-list
         'tramp-default-proxies-alist
!        (list (and (stringp host) (regexp-quote host))
!              (and (stringp user) (regexp-quote user))
               proxy))
        (setq item (tramp-dissect-file-name proxy))))
      ;; Save the new value.
--- 4641,4648 ----
        ;; Add the hop.
        (add-to-list
         'tramp-default-proxies-alist
!        (list (and (stringp host) (concat "^" (regexp-quote host) "$"))
!              (and (stringp user) (concat "^" (regexp-quote user) "$"))
               proxy))
        (setq item (tramp-dissect-file-name proxy))))
      ;; Save the new value.
Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]