From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#53847: 28.0.91; Tramp SSHFS: incorrect remote home directory Date: Wed, 9 Mar 2022 10:17:24 +0100 Message-ID: References: <871r0ct40m.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4752"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53847@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 09 10:18:39 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRsSt-00016i-6y for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Mar 2022 10:18:39 +0100 Original-Received: from localhost ([::1]:33642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRsSr-0003IS-V0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Mar 2022 04:18:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRsSI-0003I3-1z for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2022 04:18:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36389) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRsSH-0004WZ-PR for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2022 04:18:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nRsSH-0001qv-LC for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2022 04:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Mar 2022 09:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53847 X-GNU-PR-Package: emacs Original-Received: via spool by 53847-submit@debbugs.gnu.org id=B53847.16468174637096 (code B ref 53847); Wed, 09 Mar 2022 09:18:01 +0000 Original-Received: (at 53847) by debbugs.gnu.org; 9 Mar 2022 09:17:43 +0000 Original-Received: from localhost ([127.0.0.1]:58519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRsRy-0001qO-RV for submit@debbugs.gnu.org; Wed, 09 Mar 2022 04:17:43 -0500 Original-Received: from mail-oo1-f50.google.com ([209.85.161.50]:37420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRsRw-0001q8-QT for 53847@debbugs.gnu.org; Wed, 09 Mar 2022 04:17:41 -0500 Original-Received: by mail-oo1-f50.google.com with SMTP id x26-20020a4a621a000000b00320d7d4af22so2120187ooc.4 for <53847@debbugs.gnu.org>; Wed, 09 Mar 2022 01:17:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AvZWf9f5+4NGqlNkiupKlt0ZrWM2cgpU+yNXjw2Egqk=; b=e9Y7e6AT5Mibub8ZlU8n6zdryX1HBZBPnLvWQ8YsdiEQqh3CXyj1VSvmlB5aI+xLJV yxuz5EhMZ1t9e08thscO9Fc+X2WYQ701R4G7ps6y0mKxCfxPZ/eRnfxw8yoBIyBFT4Gr iH6aP5Em4G9Pn5/tRKgOze7PTqb/tK0bm1t9K7TOwlgK2WiNFDwkPSnc+1ndBpVLr/ko Skjj60gL+Nw6z8Yf9BjF9rCTcCtafrW4s2t1sqSvNxDc+/QepV/PCyPUHeIf0W/w5rd7 nsDM4WBO+qgTl/XedR8N+J3EYszUat1mo8oFk3yNMOd/hzaxffLvTgh/7PPZIFnLXEFR 6FWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AvZWf9f5+4NGqlNkiupKlt0ZrWM2cgpU+yNXjw2Egqk=; b=PvvT/2vkiKbyXRpCE31a6vfNPXMvCRfxzJWJ1t/Vt/4q2dJ1lyQYRnJEitluuqbPp0 1N3niajqxjwTsK7n7AoreGiufXvqN2d4Ft5efTA8Xd8yTK3/yCmiXXx4cG65BpiMGPWx xtRy7TuhaDSMDeaWNGRR/gV3Uom+/rsilgC50bWJeoX9UY4GvylyZna9SEYWt/IHMT9G nQYfMWey43GbIDnLOOaN0uG+BWPICe4X5mdkbBuavSSHVsJBmyo9YxQtL05L9eaCcgNu TeibzShATEyp1YKHWAqZjqsWNjE40V2fVvrJaPh5g6l37WNEzJBrhTQ0QNyqBlZmPAGS 6+cw== X-Gm-Message-State: AOAM532XXgT2+ByFomXjUvKgVl/8y9SSInxuT2JpF8KK0+L/rSeG4BCQ nj4wwFL337aOYBYEignS7/d6r/PAky2UF5T4B8Q= X-Google-Smtp-Source: ABdhPJzw8hfFIP8xNZ1YpcKXsRcqux7DMuJ8M7oNzXuoHDFoTn9+f9Z3qAgsFCsk60nF19JNOVcTeSRPHROB3LxDJxw= X-Received: by 2002:a05:6870:5589:b0:da:40b5:b030 with SMTP id n9-20020a056870558900b000da40b5b030mr4691736oao.134.1646817455132; Wed, 09 Mar 2022 01:17:35 -0800 (PST) In-Reply-To: <871r0ct40m.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228160 Archived-At: Am Mi., 9. Feb. 2022 um 17:10 Uhr schrieb Michael Albinus : > > Philipp Stephani writes: > > Hi Philipp, > > > To reproduce this, you need two GNU/Linux machines with the same user > > name but different home directories. Assume that on host 1 the user's > > home directory is /home1/user, and that on host 2 the user's home > > directory is /home2/user. With the SSH protocol, home directory > > expansion works as expected: > > > > However, this fails with SSHFS: > > Tilde expansion is not possible for sshfs (and adb, rclone) methods of > Tramp. I've added a check, and Tramp raises an error now when it detects > a tilde. Pushed to master. > Thanks, but would it maybe be possible to find a better solution? I've been using SSHFS for a while now, and this particular issue is pretty annoying in practice. How about any of the following: - When connecting over SSHFS, ask the remote host (via SSH) for the home directory and cache the result. - Allow the user to configure a per-host static home directory (i.e. just a customizable mapping from hosts + users to home directories). I regularly only connect to 2 hosts with known hostnames and home directories, so at least for me maintaining such a mapping would be feasible. WDYT?