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 17:42:05 +0800 Message-ID: <35642.5484804035$1555407804@news.gmane.org> References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="92010"; 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 Tue Apr 16 11:43:20 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 1hGKcZ-000Nkt-Or for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Apr 2019 11:43:19 +0200 Original-Received: from localhost ([127.0.0.1]:33934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGKcT-0008Ao-Ms for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Apr 2019 05:43:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGKcM-0008AT-4h for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2019 05:43:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGKcK-000538-AB for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2019 05:43:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51196) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hGKcI-00052B-1E for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2019 05:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hGKcH-0006Qk-PY for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2019 05:43: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: Tue, 16 Apr 2019 09:43: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.155540773924668 (code B ref 35241); Tue, 16 Apr 2019 09:43:01 +0000 Original-Received: (at 35241) by debbugs.gnu.org; 16 Apr 2019 09:42:19 +0000 Original-Received: from localhost ([127.0.0.1]:36503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGKbb-0006Pn-0C for submit@debbugs.gnu.org; Tue, 16 Apr 2019 05:42:19 -0400 Original-Received: from smtpbgeu2.qq.com ([18.194.254.142]:58471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGKbY-0006PT-KH for 35241@debbugs.gnu.org; Tue, 16 Apr 2019 05:42:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1555407727; bh=egLo+Rqh6UPLvJdAXBcWAwkcLpb9z1mK8MNEwes2CdE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; b=alBXVmPIDJS7UTxi1I7iCWLOc6CoQC4BoNmF2fh/Q2MQuiRB5xYEoK06GkmgE+2Bd +l9xSXCfX0Q1yGq5EXjdmbXZFp7Z4aK+R2VaMmuGSUdI9fIw8DCtIwq0s3/aJwPjH5 L0JBifofB3y0o/elO9KUKtQWAKIpDyqMUVRK72Xc= X-QQ-mid: esmtp4t1555407726t2v4ndj95 Original-Received: from rshmx11052 (unknown [211.144.221.1]) by esmtp4.qq.com (ESMTP) with id ; Tue, 16 Apr 2019 17:42:05 +0800 (CST) X-QQ-SSF: 01000000000000F0F5200F00000000G X-QQ-FEAT: Kol1Dm0TdrATYENWkGtUuJJEmKHTYjw8ZGWhfTETOHW+zX40EOEH1cT7IsGdK FssdcUhYPvvi81Arj4uZjvqevRjSI3zh+wkV7rkzivdlE67Tl2LCllvga5QzGaq3a4/ssMi jm5tmcBSK1fuc1iYNFLD0Ngl0jJpFfnnf4l1yvbOHSjVVb58uW4lx7xapOzJ+a5zGn7ybzl p9a/pzH7XJDDQyxF6k4+gz4QzQ62bl/2Axn+dG1aMHOrlLCcNRG61IMdgMXH6sMIP6ySfTt PVVa/AjuSTplNACk9OXVegpcx9Ew8RAigzcaXtkAqlap3ZzwU6ysUA7B1rD2YTKjA6eQ== X-QQ-GoodBg: 0 In-Reply-To: <87sgui5sf6.fsf@gmx.de> (Michael Albinus's message of "Tue, 16 Apr 2019 09:18:53 +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:157705 Archived-At: Michael Albinus writes: > Shuguang Sun writes: > > Hi, > >> Below is part of the message. It seems it try to find "gpg2", and >> there is no "gpg2". > > Yes. > >> 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 "." ... > > Best regards, Michael. > > Here is the full trace. I'm sorry for my mistake in previous messages. --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (quit) tramp-accept-process-output(#) tramp-wait-for-regexp(# nil "\\(= ^\\|\0\\)[^#$\n]*///61c1f45b2851d8909126eda541bf6308...") 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@h= ost.com:")) tramp-file-name-handler(expand-file-name "." "/plink:username@host.com:") locate-file-internal("gpg2" ("." "C:/Users/username/emacs/bin/" "C:/Users= /username/scoop/apps/r-openblas/current/bin/..." "C:/Users/username/scoop/a= pps/gnupg/current/bin/" "C:/Users/username/scoop/shims/" "C:/Users/username= /Progs/winports/bin/" "c:/Users/username/AppData/Roaming/Python/Python37/Sc= ..." "C:/Users/username/Progs/Python37" "C:/Users/username/Progs/Python37/S= cripts" "C:/Users/username/Progs/Python37/DLLS" "C:/Users/username/Progs/ms= ys64/mingw64/bin/" "C:/Users/username/Progs/msys64/usr/bin/" "C:/Users/user= name/Progs/svn-win32/bin/" "C:/Users/username/Progs/mplayer-console/" "C:/U= sers/username/Progs/LanguageTool/" "c:/Program Files (x86)/Google/Chrome/Ap= plication/" "C:/Users/username/Progs/miktex-portable/texmfs/insta..." "C:/U= sers/username/scoop/apps/nodejs/current/bin/" "C:/Users/username/scoop/apps= /nodejs/current/" "C:/Users/username/Progs/winports/emax/mingw64/bin" "c:/a= pp/oracle/client11g/product/11.2.0/client/bin" "C:/Program Files (x86)/Java= /jre6/bin" "C:/Program Files/Java/jre6/bin" "C:/WINDOWS/system32" "C:/WINDO= WS" "C:/WINDOWS/System32/Wbem" "C:/WINDOWS/System32/WindowsPowerShell/v1.0/= " "C:/Program Files/SAS 94TS1M1/Secure/ccme4" "C:/Program Files/SAS 94TS1M1= /x86/Secure/ccme4" "C:/Users/username/scoop/apps/gnupg/current/bin" "C:/Use= rs/username/scoop/shims" "C:/Users/username/AppData/Local/Microsoft/Windows= App..." "c:/Users/username/emacs/libexec/emacs/27.0.50/x86_64...") (".exe" = ".com" ".bat" ".cmd" ".btm" "") 1) locate-file("gpg2" ("." "C:/Users/username/emacs/bin/" "C:/Users/username= /scoop/apps/r-openblas/current/bin/..." "C:/Users/username/scoop/apps/gnupg= /current/bin/" "C:/Users/username/scoop/shims/" "C:/Users/username/Progs/wi= nports/bin/" "c:/Users/username/AppData/Roaming/Python/Python37/Sc..." "C:/= Users/username/Progs/Python37" "C:/Users/username/Progs/Python37/Scripts" "= C:/Users/username/Progs/Python37/DLLS" "C:/Users/username/Progs/msys64/ming= w64/bin/" "C:/Users/username/Progs/msys64/usr/bin/" "C:/Users/username/Prog= s/svn-win32/bin/" "C:/Users/username/Progs/mplayer-console/" "C:/Users/user= name/Progs/LanguageTool/" "c:/Program Files (x86)/Google/Chrome/Application= /" "C:/Users/username/Progs/miktex-portable/texmfs/insta..." "C:/Users/user= name/scoop/apps/nodejs/current/bin/" "C:/Users/username/scoop/apps/nodejs/c= urrent/" "C:/Users/username/Progs/winports/emax/mingw64/bin" "c:/app/oracle= /client11g/product/11.2.0/client/bin" "C:/Program Files (x86)/Java/jre6/bin= " "C:/Program Files/Java/jre6/bin" "C:/WINDOWS/system32" "C:/WINDOWS" "C:/W= INDOWS/System32/Wbem" "C:/WINDOWS/System32/WindowsPowerShell/v1.0/" "C:/Pro= gram Files/SAS 94TS1M1/Secure/ccme4" "C:/Program Files/SAS 94TS1M1/x86/Secu= re/ccme4" "C:/Users/username/scoop/apps/gnupg/current/bin" "C:/Users/userna= me/scoop/shims" "C:/Users/username/AppData/Local/Microsoft/WindowsApp..." "= c:/Users/username/emacs/libexec/emacs/27.0.50/x86_64...") (".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.gp= g" nil nil nil nil)) epa-file-handler(insert-file-contents "c:/Users/username/HOME/.authinfo.g= pg" nil nil nil nil) insert-file-contents("~/.authinfo.gpg") auth-source-netrc-parse(:max 1 :require (:secret :user) :file "~/.authinf= o.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 (:secr= et :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 :use= r)) auth-source-search(:max 1 :user "username" :host "host.com" :port "plink"= :require (:secret :user) :create t) tramp-read-passwd(#) tramp-action-password(# (tramp-f= ile-name "plink" "username" nil "host.com" nil "/home/username/" nil)) tramp-process-one-action(# (tram= p-file-name "plink" "username" nil "host.com" nil "/home/username/" nil) ((= tramp-login-prompt-regexp tramp-action-login) (tramp-password-prompt-regexp= tramp-action-password) (tramp-wrong-passwd-regexp tramp-action-permission-= denied) (shell-prompt-pattern tramp-action-succeed) (tramp-shell-prompt-pat= tern tramp-action-succeed) (tramp-yesno-prompt-regexp tramp-action-yesno) (= tramp-yn-prompt-regexp tramp-action-yn) (tramp-terminal-prompt-regexp tramp= -action-terminal) (tramp-process-alive-regexp tramp-action-process-alive))) tramp-process-actions(# (tramp-f= ile-name "plink" "username" nil "host.com" nil "/home/username/" nil) 1 ((t= ramp-login-prompt-regexp tramp-action-login) (tramp-password-prompt-regexp = tramp-action-password) (tramp-wrong-passwd-regexp tramp-action-permission-d= enied) (shell-prompt-pattern tramp-action-succeed) (tramp-shell-prompt-patt= ern tramp-action-succeed) (tramp-yesno-prompt-regexp tramp-action-yesno) (t= ramp-yn-prompt-regexp tramp-action-yn) (tramp-terminal-prompt-regexp tramp-= action-terminal) (tramp-process-alive-regexp tramp-action-process-alive)) 1= 80) tramp-maybe-open-connection((tramp-file-name "plink" "username" nil "host= .com" nil "/home/username/" nil)) tramp-send-command((tramp-file-name "plink" "username" nil "host.com" nil= "/home/username/" nil) "( (test -e /home/username/ || test -h /home/...") tramp-send-command-and-check((tramp-file-name "plink" "username" nil "hos= t.com" nil "/home/username/" nil) "( (test -e /home/username/ || test -h /h= ome/...") tramp-barf-unless-okay((tramp-file-name "plink" "username" nil "host.com"= nil "/home/username/" nil) "( (test -e /home/username/ || test -h /home/..= ." "`%s' returns with error" "( (test -e /home/username/ || test -h /home/.= ..") tramp-send-command-and-read((tramp-file-name "plink" "username" nil "host= .com" nil "/home/username/" nil) "( (test -e /home/username/ || test -h /ho= me/...") tramp-do-file-attributes-with-stat((tramp-file-name "plink" "username" ni= l "host.com" nil "/home/username/" nil) "/home/username/" string) tramp-sh-handle-file-attributes("/plink:username@host.com:/home/username/= " string) apply(tramp-sh-handle-file-attributes ("/plink:username@host.com:/home/us= ername/" string)) tramp-sh-file-name-handler(file-attributes "/plink:username@host.com:/hom= e/username/" string) apply(tramp-sh-file-name-handler file-attributes ("/plink:username@host.c= om:/home/username/" string)) tramp-file-name-handler(file-attributes "/plink:username@host.com:/home/u= sername/" string) file-attributes("/plink:username@host.com:/home/username/" string) tramp-check-cached-permissions((tramp-file-name "plink" "username" nil "h= ost.com" nil "/home/username/" nil) 114) tramp-sh-handle-file-readable-p("/plink:username@host.com:/home/username/= ") apply(tramp-sh-handle-file-readable-p "/plink:username@host.com:/home/use= rname/") tramp-sh-file-name-handler(file-readable-p "/plink:username@host.com:/hom= e/username/") apply(tramp-sh-file-name-handler file-readable-p "/plink:username@host.co= m:/home/username/") tramp-file-name-handler(file-readable-p "/plink:username@host.com:/home/u= sername/") file-readable-p("/plink:username@host.com:/home/username/") --8<---------------cut here---------------end--------------->8--- --=20 Best Regards Shuguang Sun