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: Tue, 16 Apr 2019 12:54:14 +0800 Message-ID: <15457.9284878977$1555390524@news.gmane.org> References: <875zrezqxm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="102574"; 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 To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 16 06:55:19 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 1hGG7q-000QX7-E5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Apr 2019 06:55:19 +0200 Original-Received: from localhost ([127.0.0.1]:59353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGG7p-0002xf-BE for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Apr 2019 00:55:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGG7i-0002xO-UA for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2019 00:55:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGG7e-0005ia-5P for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2019 00:55:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50848) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hGG7b-0005ht-CP for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2019 00:55:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hGG7b-0007bX-4g for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2019 00:55:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Shuguang Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Apr 2019 04:55:02 +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.155539047329191 (code B ref 35241); Tue, 16 Apr 2019 04:55:02 +0000 Original-Received: (at 35241) by debbugs.gnu.org; 16 Apr 2019 04:54:33 +0000 Original-Received: from localhost ([127.0.0.1]:36159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGG77-0007al-7r for submit@debbugs.gnu.org; Tue, 16 Apr 2019 00:54:33 -0400 Original-Received: from smtpbgau1.qq.com ([54.206.16.166]:39037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGG73-0007aT-23 for 35241@debbugs.gnu.org; Tue, 16 Apr 2019 00:54:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1555390456; bh=Za3eqbQQyn6xOU3aS6lmQumleQMaK4aQEvGbLMts9zg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type; b=pihLOXMkPpg8OzeAsI4zx9rWKwHZ5fhtqchtLIg/ZWmO5/z0FWluq0wId6DCB3C2F 47Pn8/pg+q3Le0GXlFTGe+1I4KshOa6e6P7y1G63a9VAsrN16fKIS43gUhBR9uPnMw o2QC1qBW4GERL+Bn4k+lLhfOWOGdVYSB5QM0c4RE= X-QQ-mid: esmtp6t1555390455tjc9huzbv Original-Received: from rshmx11052 (unknown [211.144.221.1]) by esmtp4.qq.com (ESMTP) with id ; Tue, 16 Apr 2019 12:54:14 +0800 (CST) X-QQ-SSF: 01000000000000F0F5200F00000000G X-QQ-FEAT: 9d8LckC02S2iEatIYg4HqFIbqIBIIqpNWOblp48pZTpisIJefRoTuXEmUy1YT BPC5hEfg0DoylMgnXMzz9xMjbWLU9UW9CC6tF0pE3N5lgk7yl2DZO2cDwPEjOA+8HwT/BTY Qz/jK98+pbI7W5uvZ1GJOKcvzCdrDA8gSN5+USNyTudQ98Fqf0Sy25muygWqOeDB/I0Litb KpQHLAlwF/lGzpaD9crg5fLWpfzfVzjeotNdqC5x3//htx/juBXrM57LnnnVP440lBkZhoT BrhQbPBSBXO6VsQWQiSsN3r4AAqAFNWAXHpa3AVSv/4UP1UwBfHUzhB/4= X-QQ-GoodBg: 0 In-Reply-To: <875zrezqxm.fsf@gmail.com> (Noam Postavsky's message of "Mon, 15 Apr 2019 21:20:37 -0400") X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:qq.com:bgforeign:bgforeign4 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:157700 Archived-At: Noam Postavsky writes: > Shuguang Sun writes: > >> I use .authinfo.gpg to store my login information, instead of .authinfo. >> >> Whe I open /plink:... with tramp, emacs get blocked and it seems tramp >> is dealing with .authinfo > > Can you get a backtrace with M-x toggle-debug-on-quit, and then hitting > C-g when it's stuck? > > Below is part of the message. It seems it try to find "gpg2", and there is no "gpg2". Actually, I have gpg version gpg (GnuPG) 2.2.15, and epg-gpg-program as "gpg". --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (quit) tramp-accept-process-output(#) tramp-wait-for-regexp(# nil "\\(^\\|\0\\)[^#$\n]*///92fc211a5...") tramp-wait-for-output(#) tramp-send-command((tramp-file-name "plink" "username" nil "host.com" nil "./." nil) "cd ~ && pwd") tramp-sh-handle-expand-file-name("." "/plink:username@host.com:") apply(tramp-sh-handle-expand-file-name ("." "/plink:username@host.com:")) tramp-sh-file-name-handler(expand-file-name "." "/plink:username@host.com:") apply(tramp-sh-file-name-handler expand-file-name ("." "/plink:username@host.com:")) 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") epg-find-configuration(OpenPGP) epg-context--make(OpenPGP nil nil nil nil nil nil) epg-make-context() epa-file-insert-file-contents("c:/Users/username/HOME/.authinfo.gpg" nil nil nil nil) apply(epa-file-insert-file-contents ("c:/Users/username/HOME/.authinfo.gpg" nil nil nil nil)) epa-file-handler(insert-file-contents "c:/Users/username/HOME/.authinfo.gpg" nil nil nil nil) insert-file-contents("~/.authinfo.gpg") auth-source-netrc-parse(:max 1 :require (:secret :user) :file "~/.authinfo.gpg" :host "host.com" :user "username" :port "plink") auth-source-netrc-search(:backend # :type netrc :max 1 :require (:secret :user) :create nil :delete nil :max 1 :user "username" :host "host.com" :port "plink" :require (:secret :user) :create t) apply(auth-source-netrc-search :backend # :type netrc :max 1 :require (:secret :user) :create nil :delete nil (:max 1 :user "username" :host "host.com" :port "plink" :require (:secret :user) :create t)) auth-source-search-backends((# # #) (:max 1 :user "username" :host "host.com" :port "plink" :require (:secret :user) :create t) 1 nil nil (:secret :user)) auth-source-search(:max 1 :user "username" :host "host.com" :port "plink" :require (:secret :user) :create t) tramp-read-passwd(#) tramp-action-password(# (tramp-file-name "plink" "username" nil "host.com" nil "/home/username/" nil)) --8<---------------cut here---------------end--------------->8--- -- Best Regards Shuguang Sun