From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Shuguang Sun Newsgroups: gmane.emacs.bugs Subject: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 Date: Wed, 17 Apr 2019 10:02:29 +0800 Message-ID: <44012.5992683292$1555466597@news.gmane.org> References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> <87pnpm3yhr.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="160624"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) Cc: 35241@debbugs.gnu.org, Noam Postavsky To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 17 04:03:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGZup-000fea-38 for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Apr 2019 04:03:11 +0200 Original-Received: from localhost ([127.0.0.1]:45490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGZuo-00053B-5z for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Apr 2019 22:03:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGZuh-000536-UP for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2019 22:03:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGZug-0007ah-Nm for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2019 22:03:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53677) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hGZug-0007aU-0h for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2019 22:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hGZuf-0008Jb-Ro for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2019 22:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Shuguang Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Apr 2019 02:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35241 X-GNU-PR-Package: emacs Original-Received: via spool by 35241-submit@debbugs.gnu.org id=B35241.155546656431937 (code B ref 35241); Wed, 17 Apr 2019 02:03:01 +0000 Original-Received: (at 35241) by debbugs.gnu.org; 17 Apr 2019 02:02:44 +0000 Original-Received: from localhost ([127.0.0.1]:38987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGZuO-0008J2-6h for submit@debbugs.gnu.org; Tue, 16 Apr 2019 22:02:44 -0400 Original-Received: from smtpbguseast2.qq.com ([54.204.34.130]:37231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGZuM-0008Ik-O8 for 35241@debbugs.gnu.org; Tue, 16 Apr 2019 22:02:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1555466553; bh=67WfQNNmB3xxoaKtUVyzpyJR7SDyR+l0EcQyUlQzgvI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type; b=QlDGKnP9mKAInmnNKc3+gehfOGvdLSjAshCUZeDQudtpo+e01iBTDMu+MMk3bDMI6 MpxsTXr1e+oL8teCTn0Mwzr4eB2kfVKc/6r+V3xKEqy6lc356TQYUFtHvxE7dHm7uQ lUsRHiWU+GMsXKBxVurbkFoJ0Eowc7WaA1IfDijg= X-QQ-mid: esmtp3t1555466552tgzlke4b7 Original-Received: from rshmx11052 (unknown [211.144.221.1]) by esmtp4.qq.com (ESMTP) with id ; Wed, 17 Apr 2019 10:02:30 +0800 (CST) X-QQ-SSF: 01000000000000F0F5200F00000000G X-QQ-FEAT: /6d4zFFneQ86zoiraEY+gkQgv7ISbTZVKBEZCuU/PTQVxRE/eOoufLMSDidhm 1CHtX8OSnlpDvKJ83lzIyZvn+fAb511wonQoBp2ZH7udrf1xP1oRFkL+pHYVT6EphTHwU3n 07RWBTMaOGxsfbsi8L5eg4eRcpEbJM2HrFLoPuT87UxNNjDXshAdO1te61BAUSYlvODtO6p qZvBa4m1UGKODnIKsKksSGLbl6PjfpkEfJ1zQFM5l4j74tT8gcEpOMmq/nIhA7SY1CaJwlk luiBqWCfD7eb7/FjbUcb+02VlOYPiDUWiu5/r+tjJXxtnL X-QQ-GoodBg: 0 In-Reply-To: <87pnpm3yhr.fsf@gmx.de> (Michael Albinus's message of "Tue, 16 Apr 2019 14:50:40 +0200") X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:qq.com:bgforeign:bgforeign2 X-QQ-Bgrelay: 1 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157754 Archived-At: Michael Albinus writes: > Shuguang Sun writes: > > Hi, > >>>> tramp-file-name-handler(expand-file-name "." "/plink:username@host.com:") >>>> locate-file-internal("gpg2" (list of path) (".exe" ".com" ".bat" >>>> ".cmd" ".btm" "") 1) >>>> executable-find("gpg2") >>> >>> This is the crucial part. `executable-find' shall operate on the local >>> file system only. But it calls `locate-file-internal' with a PATH >>> pointing to remote. >>> >>> I suppose you have edited the backtrace, and written (list of path). >>> What is there? My crystal ball tells me it contains "." ... >> >> Sorry. I do modified it here. It is the local path, not remote. And it >> contains "." which looks like: >> >> locate-file("gpg2" ("." "C:/Users/username/emacs/bin/" >> "C:/Users/username/scoop/apps/gnupg/current/bin/" >> "C:/Users/username/scoop/shims/" "C:/Users/username/Progs/msys64/mingw64/bin/" >> "C:/Users/username/Progs/msys64/usr/bin/" >> "C:/Users/username/Progs/miktex-portable/texmfs/insta..." >> "C:/Users/username/AppData/Local/Microsoft/WindowsApp...") (".exe" ".com" >> ".bat" ".cmd" ".btm" "") 1) > > Thanks, as I've expected. A relative file name like "." is the > problem. If the current directory is a remote one, it expands to a > remote directory inside exec-path, with all the hassle. > > How does come "." into exec-path? Have you set this in your .emacs? Or > is it part of the PATH environment variable on your system? You know, > that it is discouraged to add "." to your PATH for security reasons. I added it in my configure file years ago and can't remember the reasons. I remove this part (add "." to exec-path) from my configure, and then it works well. Tramp can open gpg. > > Relative file names are not forbidden as part of exec-path. Shall we ban > them (with an error message)? Or shall we ignore them, silently? Don't know. > > I'd vote for the latter (including proper documentation). > > Best regards, Michael. > > > > -- Best Regards Shuguang Sun