From unknown Sat Jun 21 10:38:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#35241 <35241@debbugs.gnu.org> To: bug#35241 <35241@debbugs.gnu.org> Subject: Status: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 Reply-To: bug#35241 <35241@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:38:12 +0000 retitle 35241 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10=20 reassign 35241 emacs submitter 35241 Shuguang Sun severity 35241 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 11 22:45:16 2019 Received: (at submit) by debbugs.gnu.org; 12 Apr 2019 02:45:16 +0000 Received: from localhost ([127.0.0.1]:55350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEmBo-0006ws-Ei for submit@debbugs.gnu.org; Thu, 11 Apr 2019 22:45:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32797) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hEmBm-0006wd-6P for submit@debbugs.gnu.org; Thu, 11 Apr 2019 22:45:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:49664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hEmBg-0005CU-Ua for submit@debbugs.gnu.org; Thu, 11 Apr 2019 22:45:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEmBf-0007Ee-VW for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 22:45:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,INVALID_MSGID,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEmBe-0005BB-W7 for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 22:45:07 -0400 Received: from smtpbgeu1.qq.com ([52.59.177.22]:57304) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hEmBc-00058j-V9 for bug-gnu-emacs@gnu.org; Thu, 11 Apr 2019 22:45:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1555037097; bh=c64PVKKDKlDBfthyaGONgqFc3yilPEUu6NQBKhqPVQ4=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Nzfp3PuSrmwRpGMmAIr8qGUtgtknUxgQv3kGnDWRF1dawejhj2ZpYpMzfKX7NQyXc iH75n4sspjrd5KVIJq1atJzaFtlipZPBfAt1AG7iL+AuKu+FH879Y78u4WNIRNbAj5 wEctKzFnWRBypaK1AsWVKlynzZuthA0Fh1FCIHWs= X-QQ-mid: esmtp2t1555037095ts1ai455n Received: from rshmx11052 (unknown [211.144.221.1]) by esmtp4.qq.com (ESMTP) with SMTP id 0 for ; Fri, 12 Apr 2019 10:44:54 +0800 (CST) X-QQ-SSF: 01000000000000F0F5200F00000000G X-QQ-FEAT: Vgw+JHurbekdqc1LPUMTDyaPCWSXx/zmpbo4CMg7C7TXRYeNg4/PJGFWx6Jml VsIKBKao7oG3Zp4GqSJAaDuf1RppXDY3Z/gT9/pbl0oRSh6Q74eRAp2hiYIds9YthsWH1HF Dii7PbfFckRlgjfiG8APfSBMxNEIsxLj1Q3Xw+Xka+5Hptt58aKd67DS5lIDbDy3FWX1C1H Mbopqmp+jcV1pRorTmGjEYbjcSRMz6pdcSUmH9CuG9wt22bCc8L7zJyeUBa+Jord4tBwIKI E7HD+vV3KpuX7mdE/5hvsowaE= X-QQ-GoodBg: 0 From: Shuguang Sun To: bug-gnu-emacs@gnu.org Subject: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 Date: Fri, 12 Apr 2019 10:44:53 +0800 Message-ID: +779F2B6D3C298C7B MIME-Version: 1.0 Content-Type: text/plain X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:qq.com:bgforeign:bgforeign4 X-QQ-Bgrelay: 1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 52.59.177.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, 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, and it doesn't decrypt the file. I need open .authinfo.gpg first, which means emacs can read .authinfo.gpg whithout interaction (passphrase?), and then tramp can do the following action (e.g., login...), and messaging "Decrypting c:/Users/username/HOME/.authinfo.gpg...done". Gnus works well, and it can interact with passphrase and ask for the password for .authinfo.gpg. In GNU Emacs 27.0.50 (build 3, x86_64-w64-mingw32) of 2019-04-05 built on RSHMX11052 Repository revision: a68c96863289d5d8ccfc2f775d0018a2721c5e53 Repository branch: master Windowing system distributor 'Microsoft Corp.', version 10.0.15063 System Description: Microsoft Windows 10 Enterprise (v10.0.1703.15063.1689) Configured using: 'configure --without-imagemagick --without-pop '--program-transform-name=s/^ctags$/ctags.emacs/' PKG_CONFIG_PATH=/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: CHS locale-coding-system: cp936 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 15 21:20:46 2019 Received: (at 35241) by debbugs.gnu.org; 16 Apr 2019 01:20:46 +0000 Received: from localhost ([127.0.0.1]:35987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGCmE-0000U4-Fs for submit@debbugs.gnu.org; Mon, 15 Apr 2019 21:20:46 -0400 Received: from mail-qk1-f172.google.com ([209.85.222.172]:39651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGCmD-0000Ts-2p for 35241@debbugs.gnu.org; Mon, 15 Apr 2019 21:20:45 -0400 Received: by mail-qk1-f172.google.com with SMTP id c189so11157033qke.6 for <35241@debbugs.gnu.org>; Mon, 15 Apr 2019 18:20:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=HJJaOWM2vY1dpK/tHmR/RgPfRSslThYqQE9iG+1F3XI=; b=H1E0BDFIM1FyDYfC61tyLyqiOYaALBc2LeGY3V5XkMMbgRzjFa0FtFFM9n1ffcNMXO cQlmuic5HsHj/m+MlH6AK6nKoGpKJXnZHkqpu5SYVed8VZ971eI4fWBeggDqHER4SRHW 76Z7HwD/N1p4WAPCj2vwb0NiVXa2GaMi0BDuxBKxtv0GVlP4/f8s3bLXBjXyK6mqmfFa dPyNJcXuqPyh+TS+KVFY7qIhHhqvfgrymHnmkhibyub1Z+k06tygw88aO5o8KHQf/Rpe bi/Yr/5M2Ad6K5FjGuqpL1yJzHv22yGMW+wUCr++SW024j4X1kURQNYguutan1ehqhVZ WQKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=HJJaOWM2vY1dpK/tHmR/RgPfRSslThYqQE9iG+1F3XI=; b=LUQ/3g9CcyvCUAN5qS7kVhXQ9Q7C4WWco7goZTS7DswGTW4yDZ7g7bfXLGUMSwv9+m k7x2LyxaEzpK54txFweXmLTgtb+SM7HmghzbBCb8xwm2jzr5S7s1TVyLLeNwKljjv8Ig KGcKL8R1rwcwubg93dzupRV1mzUjW7Drb78ZsakxMNgx+wTNLj3qer8Lj3PdBRE2xsW9 3RaAmmTbxDi1jCxlNSS8s8Ww40BqPumLrusS+Wqh3vfrtExFIu0ttZL+zYo7E8oty+zB gohu4yTOrJDgRdpH9d4Nqod/ah3iYwL4rCIaq0fG1qbFNgLo1gBNkUCNhu+udyLOQMwy VGtQ== X-Gm-Message-State: APjAAAUaszkcy3pGihZVlPo+l4byEI6P90oTSq3J/tlWcKKfIXMbhjX7 Ko0t/uS6Ni83ECv1hAKqoESB6cIU X-Google-Smtp-Source: APXvYqxfGMNB0NG3zboFXlbS7yUy3GzezqPdqnO6vfnLfgAa7uy9aTTgpCm/KYPmhJmH03Q4H1h7hA== X-Received: by 2002:a05:620a:1516:: with SMTP id i22mr58980654qkk.316.1555377639360; Mon, 15 Apr 2019 18:20:39 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id z9sm35589360qtb.73.2019.04.15.18.20.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Apr 2019 18:20:38 -0700 (PDT) From: Noam Postavsky To: Shuguang Sun Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: Date: Mon, 15 Apr 2019 21:20:37 -0400 In-Reply-To: +779F2B6D3C298C7B (Shuguang Sun's message of "Fri, 12 Apr 2019 10:44:53 +0800") Message-ID: <875zrezqxm.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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? From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 00:54:33 2019 Received: (at 35241) by debbugs.gnu.org; 16 Apr 2019 04:54:33 +0000 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 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 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 From: Shuguang Sun To: Noam Postavsky Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> Date: Tue, 16 Apr 2019 12:54:14 +0800 In-Reply-To: <875zrezqxm.fsf@gmail.com> (Noam Postavsky's message of "Mon, 15 Apr 2019 21:20:37 -0400") Message-ID: +4165D84396984174 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:qq.com:bgforeign:bgforeign4 X-QQ-Bgrelay: 1 X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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 . [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: qq.com] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [54.206.16.166 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuguang79[at]qq.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shuguang79[at]qq.com) 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.4 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 03:19:09 2019 Received: (at 35241) by debbugs.gnu.org; 16 Apr 2019 07:19:09 +0000 Received: from localhost ([127.0.0.1]:36204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGIN3-0002ia-Gt for submit@debbugs.gnu.org; Tue, 16 Apr 2019 03:19:09 -0400 Received: from mout.gmx.net ([212.227.17.22]:51113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGIN1-0002iM-Tx for 35241@debbugs.gnu.org; Tue, 16 Apr 2019 03:19:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1555399135; bh=JSXwBE81nZwoguGzSqOAF3na+jN48zhMANCa4JqKip4=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=eoDlEblCk2nz9iAzZNzbnbjvcox0ER16KlqJqadobCQ+xVMWYxVnWkKhPBAB+N3zb 4LA3CWZeCoanYWXdu4Y3+YlggLl/jd6p/s8R/oDk4tEKYc7TigEOUMZw+5y0H7Dyli 6PQvBmZDrWXEpXdCaxINbO5Sl/eK09lTw1QNbtcw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([213.220.146.33]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MCPhl-1h7FpG1Pur-00973H; Tue, 16 Apr 2019 09:18:55 +0200 From: Michael Albinus To: Shuguang Sun Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> Date: Tue, 16 Apr 2019 09:18:53 +0200 In-Reply-To: <15457.9284878977$1555390524@news.gmane.org> (Shuguang Sun's message of "Tue, 16 Apr 2019 12:54:14 +0800") Message-ID: <87sgui5sf6.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:ck0X9S3gmUwFKn6SL6ftZUCh5srbZUBRuwBBEjyQ/uS1hw6BDx6 JTb6CDOsgxOiRZCdudBN3TVfixA/k7UGh5cXlM2mlupNletD4urGZzGC+UTcy8RpX7JT0IA b21/rUPmyazVvztPParAU2URk1i92Vfm8G6KwVVdR2mmSQMBJplei48IUcYrvpAMKzxXiDZ 1OPOcz0W9yraCPH8BlQJQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:RDYgDXCUXU4=:OFrYzFgsnowDbisgOVkUi3 ZeNHmx6GT/v6nhwMB3zlTY1nZpJ3CN4EvNbU3seAD/9Ejtq+gXACBu6fDF8G+PHUOLsvMVUb9 aEvntVMU3yErZ+oBAk+iD8bFfTZ1eem+HWyMobsdsyly5n1De1FhaGFI7+ejuOl/6VgdtlxAr NE9p22EhuaEe9DM5xyJgnsv74KNmGOYh5OX75TjCL3UhtwNTh/g87kSeETQFqC+w8/Csdb+aO /nHt7kFn/RmVv4kRzvviJROBm3AcSCG3d0NgZ83ZQwiFTVXFG8utUgfE97wQz/+H70FeOccOK 5GlIukQCn/BZClQCcXviYrx9Lb8VtrFlIwtni4x53AZ72hlKyfRfpCSttIB/NffwfE9T6F5S3 I+WT8TwbIO4n8EiAMmZy2Lluc157dSDYUaBlHZTE+AG/H9h8EwZSSVqDPlkFn6aVzDB5AXzgG 33wWkrjE+HNwk4p+rFuYMIAJCmDHffo0yApeILz7vg22hEI1QGO9s5GVb3SqgqsbC+FGQS/rT 0KXE3MFHOIFuItg2mwVQqOshx+ijBzQlU2p7pH90h2CNpMDw+mOGwa/cowFNrfu4JZKSCmys6 VHESub21ODyPoad8qrFgMfqBvboHYVFKars+QZjiAfU2K0U523DOdN7ICEZ2haLucAIu73NiF fAzk7eA7up5yCjR5I8f6I7+NKMfufc+1cdzpD7PBbcTh0Ti+yJoFeWzJb8C4gp7WCMrehhDQj lIAUWEwqZW03i41lUHJMm2c63vuG5ZP3letgnAkrNiOxQzEOJ6iY6oQiPutABRjNWjNeqDQS8 vx0L6ZX29sDbkxEQNe4qFof4Xv7ser9Uvxw0CJItstSu56CB3C7LwA9D/Jq+15kmE7Vkn9bIU Bx5j7iu5TiIN2B/JoTg2hohH0svjPcUsZMtgr1FYzVI0zXiFc40qbDBHZjI0MMvNshp86MAVt 39v8I/bEFhg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, Noam Postavsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 05:34:58 2019 Received: (at 35241) by debbugs.gnu.org; 16 Apr 2019 09:34:58 +0000 Received: from localhost ([127.0.0.1]:36484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGKUU-0006DW-2p for submit@debbugs.gnu.org; Tue, 16 Apr 2019 05:34:58 -0400 Received: from [103.7.28.233] (port=45151 helo=smtpbg65.qq.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGKUP-0006D6-LS for 35241@debbugs.gnu.org; Tue, 16 Apr 2019 05:34:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1555407271; bh=mBXX8MZS28LQ5rU1wLcpRqnujLth+MtTb+OBQEcWvro=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type; b=DoZMgc+MBFKEGdpidyjVLlYlLpDd50G4vHLxv7ZdeQMaBZ+zlig85JLlQhL0KmQYq aXcrddd1lRMq+yulvb4SpYmH0SMjwKO5w1LNHcUNAikWJGZJsvH8H6qBH+LCHlLCCL PeL2ZO6F/0alXM33PEalMtSaaeTxuquLfkmCVgn8= X-QQ-mid: esmtp2t1555407270t2zhra4nb Received: from rshmx11052 (unknown [211.144.221.1]) by esmtp4.qq.com (ESMTP) with id ; Tue, 16 Apr 2019 17:34:29 +0800 (CST) X-QQ-SSF: 01000000000000F0F5200F00000000G X-QQ-FEAT: EUGmOqWjSYLxKVJQT6H/QqpzC5zGZtfzmXE8MTIH69yp3hq3bZ77eLdOGhFuX a/GMru1f66W2dsYMkfRCryjAHe5xVUINm3U/mZrGErGsQlsHZ4wkk37XZWXYbNN7W6knt+y s5C+qjZR23XzT1E4Yg0cD+8xxarLHiTrK8yfLZeGnIA+Azc5DZWu/ugTXRnUxIcpfZ723rz yGv2mwmlxiuAr+5tqiH0Gjj6pWOPeUfsqlSARPh4Cd11gr4V04DcaigW6uXRQ+8yGFeHe0f WPBLtrQWDc0LIphP9EFRPSyD7z2yNdb9GzDAcj2Hh0wjQdrV26/PLS6ps= X-QQ-GoodBg: 0 From: Shuguang Sun To: Michael Albinus Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> Date: Tue, 16 Apr 2019 17:34:28 +0800 In-Reply-To: <87sgui5sf6.fsf@gmx.de> (Michael Albinus's message of "Tue, 16 Apr 2019 09:18:53 +0200") Message-ID: +FB431760402C46BC User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:qq.com:bgforeign:bgforeign2 X-QQ-Bgrelay: 1 X-Spam-Score: 2.7 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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:userna [...] Content analysis details: (2.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: gmx.de] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [103.7.28.233 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuguang79[at]qq.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shuguang79[at]qq.com) 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, Noam Postavsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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:userna [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: qq.com] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [103.7.28.233 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuguang79[at]qq.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shuguang79[at]qq.com) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 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 "." ... Sorry. I do modified it here. It is the local path, not remote. And it contains "." which looks like: --8<---------------cut here---------------start------------->8--- 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) --8<---------------cut here---------------end--------------->8--- I have gpg installed and can be executable-find. > > Best regards, Michael. > > -- Best Regards Shuguang Sun From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 05:42:19 2019 Received: (at 35241) by debbugs.gnu.org; 16 Apr 2019 09:42:19 +0000 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 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 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 From: Shuguang Sun To: Michael Albinus Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> Date: Tue, 16 Apr 2019 17:42:05 +0800 In-Reply-To: <87sgui5sf6.fsf@gmx.de> (Michael Albinus's message of "Tue, 16 Apr 2019 09:18:53 +0200") Message-ID: +B1300368BBBBC719 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:qq.com:bgforeign:bgforeign2 X-QQ-Bgrelay: 1 X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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:userna [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: gmx.de] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [18.194.254.142 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuguang79[at]qq.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shuguang79[at]qq.com) 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, Noam Postavsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.4 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 08:50:54 2019 Received: (at 35241) by debbugs.gnu.org; 16 Apr 2019 12:50:54 +0000 Received: from localhost ([127.0.0.1]:36783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGNY5-00055K-T9 for submit@debbugs.gnu.org; Tue, 16 Apr 2019 08:50:54 -0400 Received: from mout.gmx.net ([212.227.17.21]:60189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGNY4-000557-DF for 35241@debbugs.gnu.org; Tue, 16 Apr 2019 08:50:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1555419041; bh=K4zyfoQKMGdRgh7ljdijMHFY1y3x4oG4XDyp8e59wAY=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=JahBPBOx8XtswocxJe9r0ZNbIhn8hTct0OsK6rpLiXofxzX2cEe29uzDclM0BN0so KGQoDH/YTrTa881kwHCEQMoTN1g/49I4xd0w/agJAPhYl23mjxYWOJug4eESCQ2YVS rQ5XwMG/WtNNRbKr5n9uTUqjFqwaAqk3BQL+DUcU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([213.220.146.33]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lkfii-1gfwGb1pqe-00aZLY; Tue, 16 Apr 2019 14:50:41 +0200 From: Michael Albinus To: Shuguang Sun Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> Date: Tue, 16 Apr 2019 14:50:40 +0200 In-Reply-To: +FB431760402C46BC (Shuguang Sun's message of "Tue, 16 Apr 2019 17:34:28 +0800") Message-ID: <87pnpm3yhr.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:i99fLyV7XNVCrlOROn4OLFbqC4hfUvzBE3EjQKe5hkGtS7pOAs1 yrFafNopb0J9wtGQSxe9lr1UZ3rAILASsNL7mksKMmBVP6rzJjthTA/l4ITDHQpj3j4zT2Q JYoDEF5tkVWr4teD7/jp7ndseA6g9ayFmq9dyrvKOEmE48WeNEZYcrWUitxBxjNLXe8zbBu rkGrQCoykAPPYt8qTNhbw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ov/fX2F7ZbE=:kQeJKYw7TG72gmZhRRCHTH 7fBcBtuRKuRzAMkp1CMc2ts43FTA+65q9VPt27IF9v84dg145gB0d50LK6kk4+BbIMagtYG94 FAzwe0nw9DvwKLhO7dl2wD8jymHET3uBIewQ82aSPmY05rCmuMXrskPFgTJTK2Fl3aeR+YLur puYpUTWWZhWMKKHOzNJMdkM2l8uVbb/wUodmHP0FSRH3mZZx+VDf7Q/in5HaFjzgLSSW7GTvb 92CjHJQIN+jFtjsEQx8V3tNkGF+SPbXcp+MxkGfIJOA/WWWMP6pUu8EjI2WSj+OzVh4ueubz1 5yptk/j50fSOblXVx62W1pfikiz5Ls3rfiWPz1B0Q5mNZ32K6cOu3MAnl7Sqq1wLp4g2N3daw q7HUDCMs1M0Pg9OFGYEdiAHm5jHjtFyAnDS8fatMXz52sE8wCOJrIe8rYtG0ZIkda1zNYNoto pzbQiJFMej0dBdHPADpKPcA/VZGVzAVDiVgC/bKLaPtw73t3U+d2DOR5B1QlCQkXtQFnAp79P TXh39iFb4F3M4I0enbjj7w/sDfEkga4yCN+8/VDeYI5Bo6qKVnkwfzxZH4Edbp0mlMTA9nYW0 upvVVVo7lEmBY6lIyWcfPT0DnBA5tdgcrGNV3it90WeX4iA492XJhkFkQ2+3ss0fq8ny3sPFE o4YrB3hneL2Tcqw+JU/UF+L24OJ7HgCq37EWt8AE3cJ+y4IXpUJzbdZoS8K4t1/2W3upbxog7 J/flBPkuM1makJPhK2hbzwHvX+Dqthm8ic58ey7Uu6/mBy3UTNmn8yq/GyMNy+EGdD/3dqwD5 2J+YXCYYB3WqnXikAPTzVHU/saJaf4/JrFwny4d0IP/kZbQ3pUlrZyL0Ffs+sOXK2DCmdDIRD kdslVe4Gt44jjwxdPhc7bQneRLWdubSqxNyjkX40FVD2ILLYkT65w2FDkRHW4KbwwpKbxqrHh 6NM8DBkAOvQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, Noam Postavsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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. 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 10:47:57 2019 Received: (at 35241) by debbugs.gnu.org; 16 Apr 2019 14:47:57 +0000 Received: from localhost ([127.0.0.1]:37692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGPNN-0001vn-2k for submit@debbugs.gnu.org; Tue, 16 Apr 2019 10:47:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGPNJ-0001vX-KQ for 35241@debbugs.gnu.org; Tue, 16 Apr 2019 10:47:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGPNE-0007V0-7B; Tue, 16 Apr 2019 10:47:48 -0400 Received: from [176.228.60.248] (port=1313 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hGPND-0002f2-IJ; Tue, 16 Apr 2019 10:47:48 -0400 Date: Tue, 16 Apr 2019 17:47:42 +0300 Message-Id: <83k1fugg6p.fsf@gnu.org> From: Eli Zaretskii To: Michael Albinus In-reply-to: <87pnpm3yhr.fsf@gmx.de> (message from Michael Albinus on Tue, 16 Apr 2019 14:50:40 +0200) Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> <87pnpm3yhr.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, shuguang79@qq.com, npostavs@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Michael Albinus > Date: Tue, 16 Apr 2019 14:50:40 +0200 > Cc: 35241@debbugs.gnu.org, Noam Postavsky > > 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). Maybe executable-find should ignore them if default-directory is remote? From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 11:20:40 2019 Received: (at 35241) by debbugs.gnu.org; 16 Apr 2019 15:20:40 +0000 Received: from localhost ([127.0.0.1]:37719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGPt1-0002ln-OJ for submit@debbugs.gnu.org; Tue, 16 Apr 2019 11:20:39 -0400 Received: from mail-oi1-f174.google.com ([209.85.167.174]:36964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGPsy-0002lR-9N for 35241@debbugs.gnu.org; Tue, 16 Apr 2019 11:20:36 -0400 Received: by mail-oi1-f174.google.com with SMTP id v84so17286253oif.4 for <35241@debbugs.gnu.org>; Tue, 16 Apr 2019 08:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mteM6E9iYSBlOCL/Iu1guJQDDa9rhyUQvybjy+ZqyHc=; b=efLrRdh6EWFnPIE/oUvfEm+1Je20Oy24MUZEZafLiIEl7i/8hHuGOVm0U0pEadXlMv BIcX2PW9T/wnyfYD/l3mN92W3NWMQ/QnTk2FI8EdpUdm1FfSZIvWnbaw24wI7YcLj2Ca qNVCihjEuT1+d+KpCySCFa8n3zwQD0F4rWTj6is1wlrzdlSiP9n2SY7nnL3+guRpwTSX 4GH2UhxdTF6a4ox16fU81szBn5HyJ2rGZUPSilqSEACgdeEpzmuAE5fyIGFsOT+9Duua Pw+/XN0bxqsa7+eVsFsWjRXEQQpSlFIUQvklRTxAHvwlJ1ZggDTaWRZvvHYbp68T+qJL 7YUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mteM6E9iYSBlOCL/Iu1guJQDDa9rhyUQvybjy+ZqyHc=; b=NCV5tCboi8rHjMfm0w3+XKVRnZQ43u0KHaZx2K5lQEJzfIAtpkmQS15qqfsunahMFt lTmJbseYOznmFjbiTvm3jwtetOwJsj5QmIYXO9m93+1P7MmOgIvjnh1+jq/9ScDbQy6I oHRR9ERjMHq/W6qyA2lPW/WmYwP5z6DohEM35AtjE4AQPYlMMbdiy9oFCcjRDJwN4y/X 0w+d1dPOnLW2MDHK10TyKmA23Z3kt1EcztESPP7Zb5p0itAUuFRUIkVrRH/h6gt8PArZ kTROPKMN/SI3WKTKV+QBZGJf1NpbWYsMIECfmcvkmizA8xcd+CWNG7eFNyH4qm8WmFPc 7BRw== X-Gm-Message-State: APjAAAX25zdloXdwq0Mc6jpQKvxoUFnSoTYPO/eAT6Z28w8Lj8n47uWS O/3001Wg77D7ctKiDXJzaZAsBzOGAssEoN9xRBg= X-Google-Smtp-Source: APXvYqwwKUSd0okDRfjf3ebNKL0sMRgyuaDOARSXHDvmH6lgf+SlwE8OAKrHfPQFmGOXAWZ5zqQfHewEIpvc6WPppxc= X-Received: by 2002:aca:bf08:: with SMTP id p8mr22172987oif.173.1555428030193; Tue, 16 Apr 2019 08:20:30 -0700 (PDT) MIME-Version: 1.0 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> <87pnpm3yhr.fsf@gmx.de> In-Reply-To: <87pnpm3yhr.fsf@gmx.de> From: Noam Postavsky Date: Tue, 16 Apr 2019 11:20:17 -0400 Message-ID: Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 To: Michael Albinus Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, Shuguang Sun X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, 16 Apr 2019 at 08:50, Michael Albinus wrote: > 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. It seems if PATH ends with a trailing ";" then exec-path gets a ".", I just noticed this is the case for my Windows machine. The Windows shell acts as if "." is part of PATH regardless, as far as I can tell. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 12:03:27 2019 Received: (at 35241) by debbugs.gnu.org; 16 Apr 2019 16:03:27 +0000 Received: from localhost ([127.0.0.1]:37900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGQYQ-0003y4-Jk for submit@debbugs.gnu.org; Tue, 16 Apr 2019 12:03:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGQYP-0003xr-35 for 35241@debbugs.gnu.org; Tue, 16 Apr 2019 12:03:25 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGQYI-00030S-1a; Tue, 16 Apr 2019 12:03:18 -0400 Received: from [176.228.60.248] (port=1987 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hGQYG-0004xL-Hr; Tue, 16 Apr 2019 12:03:17 -0400 Date: Tue, 16 Apr 2019 19:03:11 +0300 Message-Id: <8336migcow.fsf@gnu.org> From: Eli Zaretskii To: Noam Postavsky In-reply-to: (message from Noam Postavsky on Tue, 16 Apr 2019 11:20:17 -0400) Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> <87pnpm3yhr.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, shuguang79@qq.com, michael.albinus@gmx.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Noam Postavsky > Date: Tue, 16 Apr 2019 11:20:17 -0400 > Cc: Shuguang Sun , 35241@debbugs.gnu.org > > The Windows shell acts as if "." is part of PATH regardless, as far > as I can tell. It isn't the shell, it's how executable search works on the OS level. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 12:13:11 2019 Received: (at 35241) by debbugs.gnu.org; 16 Apr 2019 16:13:11 +0000 Received: from localhost ([127.0.0.1]:37910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGQhr-0004Fi-9C for submit@debbugs.gnu.org; Tue, 16 Apr 2019 12:13:11 -0400 Received: from mout.gmx.net ([212.227.17.20]:52677) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGQhq-0004FS-2Y for 35241@debbugs.gnu.org; Tue, 16 Apr 2019 12:13:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1555431176; bh=XTISHDmFbhTDIvxbjcgHOyJa4jqSTpeO65tGwf60kbY=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=IVLwjSNBj2I3vF9iE7T5z2rEkGPSctzCTlGZ2tfm1LRzpG2jqv0tAN4ULc86Ryxnx iNJBN+noBaR6EDl0KDJfH9mW00mzZjsxgbd5Hm/irIJBdb2vwHf+P3cLsJ6wt2gQiO hABUDw1E1pbDnl9Nf2NfqGCxH0FZkdNCPAcVaFGk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([213.220.146.33]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M8pKi-1h8gPU1Fb2-00CAG6; Tue, 16 Apr 2019 18:12:56 +0200 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> <87pnpm3yhr.fsf@gmx.de> <8336migcow.fsf@gnu.org> Date: Tue, 16 Apr 2019 18:12:53 +0200 In-Reply-To: <8336migcow.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 16 Apr 2019 19:03:11 +0300") Message-ID: <87lg0a3p4q.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:8X4V4dD2E0JpVcMK8Oc7tq5IPsFZUaW/8vqtVvO4ZEr7DNoVpgr onVCUj64TZxGOt8rxC4sToIGU8wDuh6uVDT04GGX3FMnXwPXjqji2lM2lIB9cYanWhI3L1e D/BKzEFAIh1/rvPyMl5rfoNCFRvm/us6fxT6QVcBZe+wyUmUVH1vzbe8aKAkoxrRu87fpF9 BxTlLOmT7fWg1NRSyivRQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:eEbDUyqTLaU=:1ZzUX1sW+Rm48Fyih6nr21 7/az7v9yEJpS0szDV6ARqGdYROv/GfZj3H3DsW49GMKzWagBFZaDqwDapXevMg5Nx7a+agqaO gzNPgxrPKBbrm0NsZ9HaawS+FUH85LEkJGYyo79wl35UN/dT1Q4AlB61qu4tcCIfBt6vi8oZv cPDf5V0ZjEofbZ/XW4esnDDP55PI1ao/+MUZf8SMVe2tfluBo3Tg2r9fWAgKKVejOnXWFHAym V2SzLPXNBDBr6ZJaeCEWLVo5yok6CAUKKRwALaTVd6Ig+s9QEwGrLsKLKCWOSpIIZ9MISPLbT 00jZlEgYPm3TSNmps+/iv5E7gdEqwcXmY1XtNBQo37nzFgqbU//ewqBRTdJRgVoxRvy/5s5MH ccfgnUZF0z9pLUywwr+B+8WFuXQ81HghBhOA64cEHho5sC0E48m7ml0jtyf8bqVn2qsBOXFwS 36IoNVZhqgfaLG84+fenUZcJ6dKAAd5BEhXCSVojAVKkwgoIwV3WvRrhH3bvC3xI0+I6pYvbP gz3YCcApQZVLW12uEezl5K/KUfqguX1SsToJ3//naIl0MxfUUkxgF78W9FyUZ7i+lGkGqZPCF N10YybuAceY8UmbidRrAU0o9M3qZbBhB2myy6nuxKFxMICjvQXR4MAo8HIJKNJZYd8ZbG3ESu Seo+ZdPRlHY74yuU4uyjBW+TYjJaKVF15rb7z5puyE9J9I3XhvTVjnF2s+Zomz81mG7XkeFuA iiS82+OEj4tzKbGdMIQWlObQ1mZRvoiX/8aEAGZdvl+x+maA5gdmvYKti/3nYVXPt5spdQmJg QIuTrCElMPTR0An3hSn9gbrMFtn0etWzeWaoXzEZPGBhsvYJV8Bdvo5OnbqEEb+1cV469mdKU Cy/RDyy25dvWTCBN+XzL2XyWtesmFeWkUrwfBm9TW4llib1tiaAnCfzqSSBAYGmva/RBR2PVx 8cXtWEaLHGQ== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, shuguang79@qq.com, Noam Postavsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: >> From: Noam Postavsky >> Date: Tue, 16 Apr 2019 11:20:17 -0400 >> Cc: Shuguang Sun , 35241@debbugs.gnu.org >> >> The Windows shell acts as if "." is part of PATH regardless, as far >> as I can tell. > > It isn't the shell, it's how executable search works on the OS level. The docstring of `exec-path' says "Each element is a string (directory name) or nil (try default directory)." This is implemented in decode_env_path. Hmm. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 12:20:42 2019 Received: (at 35241) by debbugs.gnu.org; 16 Apr 2019 16:20:42 +0000 Received: from localhost ([127.0.0.1]:37914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGQp8-0004TC-3X for submit@debbugs.gnu.org; Tue, 16 Apr 2019 12:20:42 -0400 Received: from mout.gmx.net ([212.227.17.21]:51129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGQp5-0004Ss-Uw for 35241@debbugs.gnu.org; Tue, 16 Apr 2019 12:20:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1555431626; bh=9ZVWFilBxlOH9m0SIcR0xnZE+BXpL0a1PtTlLwB8VE8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=ESVomawT2zctmSaDUCQg+x5kju38bvixeT+ZwdyBBsILw3OMfCmz/FAaIIbFLzy5O /5HsQT03FycE6bZ97KMTE9xEh1ZT2SSZypAVhr4STtCcYu2REfOQDuYyVuwc6yxAVB NGEuHoKYzCLdLGHBQtLB8iTHuuXDCPBfWC/IAkGs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([213.220.146.33]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LsxuQ-1grvxQ0NMw-012acA; Tue, 16 Apr 2019 18:20:26 +0200 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> <87pnpm3yhr.fsf@gmx.de> <83k1fugg6p.fsf@gnu.org> Date: Tue, 16 Apr 2019 18:20:24 +0200 In-Reply-To: <83k1fugg6p.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 16 Apr 2019 17:47:42 +0300") Message-ID: <87h8ax53cn.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:jPp3AbJVcaolXUrIJUuLYOwtDasH9rjoRCqKDjk8aYjAOUmryJD qxdMMX2LNWrKvKwfGLXS3wnooeXhSA2rWBiZK1XPmSXXMTedZ8ci1/uJJqzQEh2Po2y8x5w REFB6Hw7yf4L+DSP2d9mI5P+7TJZTDnYIK6zxL8Il6xiNRqV41gS5at0ElChWEvAEJHLeUi +AvfvEMck2Gb62Jl9Vx/A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:W5M3o+4AYKA=:gY73NsxxC1ELD7Xro2K229 tVGoqO+qHEyQ6JhxF4yZhgBtvo2ESjyVQ4UlSPxfceKF1BvRrUf0XVf3On4R/SFAoZ5bkuPuh c7a12CRWwccwMu81eLODyY5ljCgFTdQKY0TnCbFjg7x+Mh4II6Pll4/nd0QYjHeg2eDdtNZVw PRz3nkKJRQahtPaV9n+wDEH5QuP3P+hsegviCU1bKgAyhDbZ1GH+eY/Z3LBfblDfzTojkOt5h ebnGobs8AD/iKdYkeVsOA+NTbvm2ZcynZgy0NroQwKt1HXOTYD0GSoWusvwdvSlq6tPNqxew5 Q4HJLyDSt1KwvXd6TGwnVaMNP9FGNsbx/Tw7sYAz3AIoqRsK0KDmMHaDneNuQnD8ognhAxEfL wsIWGHS5KJ8ZLN+mbYaYqvJUCVahEX1n75aZY65T0npySTxFnGyzMiCHMuclUtc6IpqsgDEU7 tObug2ZJBr4LV+FbzgskMbNEc3U24ZJoVGU9xjRqWHB8uQsDt9U3k7FaAqShNhZvhTqBW0fOT /XqIrGQpGX6yogXLffEcy+wyce6KqM10JD+IdcromHqgK83dGxRCQ30rz9AHFCAbJVE31FamD 3SLTcQ+j41fPhUyVWrTvn5G3+7BCijhWDy1GH0DrWPbvagTqEU+LubSRU15NxqLc2UsvVBiug uvSLCHUTx54IGMkvCjJKx8BFViIIUJSOkmH4yGCdZUIHV/Bj3oExTmRbNogj7RoiWHixH/LiK rh0VJOs3Osp+cMxqavclKYvacW2uTMM8jLObmVepMO5UR5NjOwqmZNYzM9gQ/AGz7Sdx8OBBp qQ48y4jHUDIVhiJVZXkRbzSEzHQBMIhiETo4mKEfsye8IdPueDJHDXpKuSTXWTnHzp42rifTG lr027O2/TvF4V2l9Di2OG9qVaKGxO/BzumyWFOX+/yUkWfSIL6PrX0z7XsvhCFEanyGmOr58r G+HO6tW7PFA== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, shuguang79@qq.com, npostavs@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: >> From: Michael Albinus >> Date: Tue, 16 Apr 2019 14:50:40 +0200 >> Cc: 35241@debbugs.gnu.org, Noam Postavsky >> >> Relative file names are not forbidden as part of exec-path. Shall we ba= n >> them (with an error message)? Or shall we ignore them, silently? Don't = know. >> >> I'd vote for the latter (including proper documentation). > > Maybe executable-find should ignore them if default-directory is > remote? Or suppress file name handlers if the REMOTE arg is nil? Like =2D-8<---------------cut here---------------start------------->8--- *** /tmp/ediffaHi4iI 2019-04-16 18:15:36.467002896 +0200 =2D-- /home/albinus/src/emacs/lisp/files.el 2019-04-16 18:15:25.698810831 = +0200 *************** *** 1058,1064 **** (when (stringp res) (file-local-name res))) ;; Use 1 rather than file-executable-p to better match the ;; behavior of call-process. ! (locate-file command exec-path exec-suffixes 1))) (defun load-library (library) "Load the Emacs Lisp library named LIBRARY. =2D-- 1058,1065 ---- (when (stringp res) (file-local-name res))) ;; Use 1 rather than file-executable-p to better match the ;; behavior of call-process. ! (let (file-name-handler) ! (locate-file command exec-path exec-suffixes 1)))) (defun load-library (library) "Load the Emacs Lisp library named LIBRARY. =2D-8<---------------cut here---------------end--------------->8--- Alternatively, we could just suppress Tramp: =2D-8<---------------cut here---------------start------------->8--- *** /tmp/ediffaHi4iI 2019-04-16 18:15:36.467002896 +0200 =2D-- /home/albinus/src/emacs/lisp/files.el 2019-04-16 18:15:25.698810831 = +0200 *************** *** 1058,1064 **** (when (stringp res) (file-local-name res))) ;; Use 1 rather than file-executable-p to better match the ;; behavior of call-process. ! (locate-file command exec-path exec-suffixes 1))) (defun load-library (library) "Load the Emacs Lisp library named LIBRARY. =2D-- 1058,1065 ---- (when (stringp res) (file-local-name res))) ;; Use 1 rather than file-executable-p to better match the ;; behavior of call-process. ! (let (tramp-mode) ! (locate-file command exec-path exec-suffixes 1)))) (defun load-library (library) "Load the Emacs Lisp library named LIBRARY. =2D-8<---------------cut here---------------end--------------->8--- But in this case, other remote default directories would do the same harm. Think about `url-handler-mode', for example. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 12:43:02 2019 Received: (at 35241) by debbugs.gnu.org; 16 Apr 2019 16:43:02 +0000 Received: from localhost ([127.0.0.1]:37925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGRAj-00057f-OC for submit@debbugs.gnu.org; Tue, 16 Apr 2019 12:43:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42277) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGRAi-00057C-Ml for 35241@debbugs.gnu.org; Tue, 16 Apr 2019 12:43:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGRAd-0007JI-Ar; Tue, 16 Apr 2019 12:42:55 -0400 Received: from [176.228.60.248] (port=4621 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hGRAc-0001AM-Le; Tue, 16 Apr 2019 12:42:55 -0400 Date: Tue, 16 Apr 2019 19:42:49 +0300 Message-Id: <83zhopgauu.fsf@gnu.org> From: Eli Zaretskii To: Michael Albinus In-reply-to: <87h8ax53cn.fsf@gmx.de> (message from Michael Albinus on Tue, 16 Apr 2019 18:20:24 +0200) Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> <87pnpm3yhr.fsf@gmx.de> <83k1fugg6p.fsf@gnu.org> <87h8ax53cn.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, shuguang79@qq.com, npostavs@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Michael Albinus > Cc: shuguang79@qq.com, 35241@debbugs.gnu.org, npostavs@gmail.com > Date: Tue, 16 Apr 2019 18:20:24 +0200 > > But in this case, other remote default directories would do the same > harm. Think about `url-handler-mode', for example. I don't think I understand the situation you had in mind. Can you elaborate? From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 15:42:24 2019 Received: (at 35241) by debbugs.gnu.org; 16 Apr 2019 19:42:24 +0000 Received: from localhost ([127.0.0.1]:38027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGTyK-000154-31 for submit@debbugs.gnu.org; Tue, 16 Apr 2019 15:42:24 -0400 Received: from mout.gmx.net ([212.227.17.22]:48809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGTyI-00014p-3e for 35241@debbugs.gnu.org; Tue, 16 Apr 2019 15:42:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1555443727; bh=x6nnzqIQHJYvVIQAvyu2GsIsPTJHfTghXzpNF8Eka1U=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date; b=jasenUk8ayVbBpzK7jIUfIgDdinuL2qlRYtZ2YGRCs0ftpkIfFpO4OqCkhz2RtdpP OxUmNrV8jScCmM15CgVRdNe15npk6vXsHRXb4C1HVyWDw8seCxHfL46kN1EM2WrbJe f1Ae3ELJu+6O8+WZZ92Pfq4w9kBbaUiV3+1feiYc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([213.220.146.33]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MQNFY-1hQQgF2pZs-00ToSq; Tue, 16 Apr 2019 21:42:07 +0200 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> <87pnpm3yhr.fsf@gmx.de> <83k1fugg6p.fsf@gnu.org> <87h8ax53cn.fsf@gmx.de> <83zhopgauu.fsf@gnu.org> Date: Tue, 16 Apr 2019 21:42:06 +0200 Message-ID: <877ebthh4h.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:cUx9nyIPm8cj8C2gQ1AeNXCnvXRrJzM1jZg8q+gNp4ioWty/W7a uwpAlzdqP/ebzCuhQOc4l2/OhX8IXzTW+1knred2BQ+rLu3WLPap8AvT2MBkUwgHa3c0elu zf/fB4DUYpk1sPfVvS6VRAVjsnshv5fMWC7AP+Ph38Of/2uc7vKjwldtGEY+T/tTs57LBy0 aBMbIxRlr7s6UwHJ8Se/w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:bKiADlMO5q4=:kvKOmdy7uxzFuSXTt7J0Pc 9sm+CHvJ7nBYGPmC6TgSweiBQSpK8TbRswI0xezjFPLP/tD+h9lzsB7zrej+RGkmx0EZutezf gCJWk+XiV+O8auVZ/dIo4tFKvIFRqX1I0/08NtSn/Ug2A6UpvW/glUaE6tDZLZEcCtwVxbEM4 ZhtgG2ZYNx2wvXCjeber+ccrXB+llxCQa99WvjscGGo987TvkO/eNePUVvvN62jivPlVLZST4 OvmM2Mt1DFiwJ/Rb8jRyH8JftBhjSdSwbali6QEZNDAlm3MRB54i3olNoPBKFSYAfRst7Dabe vQth1URXFBC96it1JP2/ANv6SMSM164Rr7+G216yWMBV8W9WwCFvVPV60hfVj+qqxZm82UaL0 5zJyaNkPcqFqANGvtR3j/XKEuHuD075fYZg+mjx6XRvMcP5hWxlZDJjlMFXbq+JOuz/54jAiQ iLAKq3EuLLtk05jNqTS42kXG0dCJ9bQoUwexCCJJPcKZms0KpFsBQw8eAvC+ZXgaPRi+c0YKt u8O9b3TsUuFKkehI0QXr8zMz72N+3fTHVj4UbSgZZFWBKLob+sc4+IBKsa3XDBOphaDs0TAUM NxXtfgjuhdk9p6NAhyvaWxJUEqxcXUzUlS+4wz6AFeNtOFgJR5ED6XqpXKtyRMfFkIZ5Uv8Lm OecJAJj74aW+LBW/nbJJ1397oh0E+OELKrXgEHDeM2/cxNc7WZL7b3W5KmJdcPoTI4HvPy5Hi hLvtMkAbrFlC41Bqj+U/XeiZIcilK8nXi6E5ZZvzBzMwgnBTCb8gD2fs32xD82NhL6Cfg80rS PY48LM83v0V8bbZmniKCG5qVyRyDQPcWIiJsql9u5moCe9VTzp9/ZUQkEcWtNA0MDRxEP97d5 Mmn27CHj+r9kHNjYwvWxd8y909jJn4XD4P6n1F/3ApiIl5FJ/HmT8nts/LkvAw9QAqxLxoM0E 3nrCunkehbA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, shuguang79@qq.com, npostavs@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: >> But in this case, other remote default directories would do the same >> harm. Think about `url-handler-mode', for example. > > I don't think I understand the situation you had in mind. Can you > elaborate? (url-handler-mode 1) (let ((default-directory "ftp://ftp.gnu.org/") (exec-path (cons "." exec-path))) (executable-find "ls")) From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 22:02:44 2019 Received: (at 35241) by debbugs.gnu.org; 17 Apr 2019 02:02:44 +0000 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 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 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 From: Shuguang Sun To: Michael Albinus Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> <87pnpm3yhr.fsf@gmx.de> Date: Wed, 17 Apr 2019 10:02:29 +0800 In-Reply-To: <87pnpm3yhr.fsf@gmx.de> (Michael Albinus's message of "Tue, 16 Apr 2019 14:50:40 +0200") Message-ID: +1E4F7D82C8A10234 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:qq.com:bgforeign:bgforeign2 X-QQ-Bgrelay: 1 X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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" ".bt [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: gmx.de] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [54.204.34.130 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (shuguang79[at]qq.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (shuguang79[at]qq.com) 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, Noam Postavsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.4 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 17 03:24:58 2019 Received: (at 35241) by debbugs.gnu.org; 17 Apr 2019 07:24:58 +0000 Received: from localhost ([127.0.0.1]:39281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGewE-0002Dq-AF for submit@debbugs.gnu.org; Wed, 17 Apr 2019 03:24:58 -0400 Received: from mout.gmx.net ([212.227.17.22]:46173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGewA-0002DV-UW for 35241@debbugs.gnu.org; Wed, 17 Apr 2019 03:24:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1555485885; bh=VkKfT1vhw0g3aWpgMY6Y9kUi9THmeOyjCzXrPBp4R14=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=RyiIAxy39oFhhYP8poKhH6dd13weV3MF5Dy4Pvz+/gB+fW4s+LpvwoYfNOjVPrqsb WYEhg4vLIQkh4RG3kZ+uzhTrhC9DEIGgUxtjYWg0bi7ZpTWGzJTe5/mnPeYtC9gmd8 7nEP+1aT8GL8QyHZcI8iUMnc5Kza4AQHNL6LGZ6A= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.91.243.201]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LhkiL-1gUPwD3rGL-00mqQr; Wed, 17 Apr 2019 09:24:45 +0200 From: Michael Albinus To: Shuguang Sun Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> <87pnpm3yhr.fsf@gmx.de> Date: Wed, 17 Apr 2019 09:24:44 +0200 In-Reply-To: +1E4F7D82C8A10234 (Shuguang Sun's message of "Wed, 17 Apr 2019 10:02:29 +0800") Message-ID: <87y349nlfn.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:/HYzQYY/3ZjS3U1IGQFY9+yShkbNrA6jeGtZfYE8bS/tJu+huFh CSBmNPA9VWiLEYXYvAlxfjOmFK7KLU6qov0lLjk2BpExgOyHQYJ/BDdJTpxas4jrNpOVONE s6WjXtwXjBAPqPWYCm9XbQFBwn1aI4OWRQ/eO24mGoc32eg0J5UDlOR1mri8xxLAuyMe/vV NaW7mkeftiE7eRqkHgU6A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:AXpiTTI60KQ=:Q8X34UjBIW4aR7D29AEGYz kGKwbPDwSDkfuyrVqUPUJDaX99ZJWsWsjzda3bXCMibzCSJZYUgYPEF5sac60b7ka8z9bBGAJ NUFOrLpBNZIAFKkez7+veJ7IdZ+5q4iD9uehu9mC4ERoG6isS8Pe+5LkC54Ml3gTR/P3FPdfv qzBscEqd3csBR7ZtOPjDyonJV3JIELQyscnqrwyK+b1+eHdsJlOEnY1e1pmIY/urUJ6Duoh2n J2irbFFDAJwqgvLrLY8zlxhULP964GINYNGAQkQWbATIcK21J3lbk37WFxkbGwjFyKTfq1efb hTmzTU6slb+ta7iUr9Rfqp/UX7obOidr3owYpTTIKUaesAbArtdHpv1STcQIDQqIEIhn9GQmB ReEu9MTVLYr6oJ76B5aUXBJb+x7yZSVEod6zJM4EgAhUz1Nq+NhUzV/ZrXYaZ4pD6x4ZIUm9N k8w/lumpEwGLUwVxBcBEtu4k3l+iej2FfO/fOcnZARiMkzy7AGMfwOYS2rA5x6tjuPdB8gUAB 6+vO+nsMhB7TMk2p7q9dXKVBvkJL9Q7xt43s7uNbUGGktoN4THYQ822Rxa2oFTuE4FS5SNV+a PLvxIOciVoSH4qOYZxv7T/VlR1w3mwiTwJ3TEqrhVKrf8lyjcmvabE1ARvyGud4DFvL54OHp1 yIVW+aEnVqrLa7w255FDlNDzom3Cowhbv+i7oAeOIsJ3SBhJXVwi0KyKRNW/iPpjxp1KzEU8L JmpnSFF5wuH3zDi2XGWwwOAdAOOm6sT6MZvFZn9qiqxkmdAgGLTmdsoNfR3SaPwtFAwmCsPPl mBnoqnBshgwrM2F2a0stcHkcVDCeAHzoVUXe7pG0Wfxxt10j8LbWlXKR5sAbioi3gnpi1Zr1K CBCRDYVJpHMggBTB4lT0nTwd3fuLZyutK3H3lbyvG+uBdYAdWvBmyGYJTmA/G4YW+GgM+fKPM SFJT8fB5B0A== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, Noam Postavsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Shuguang Sun writes: Hi, >> 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. Good, that is fixed for you. However, I will use this bug report for fixing it in general. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 17 03:35:30 2019 Received: (at 35241) by debbugs.gnu.org; 17 Apr 2019 07:35:30 +0000 Received: from localhost ([127.0.0.1]:39307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGf6Q-0002VI-DU for submit@debbugs.gnu.org; Wed, 17 Apr 2019 03:35:30 -0400 Received: from mout.gmx.net ([212.227.15.15]:57077) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGf6L-0002V0-Fu for 35241@debbugs.gnu.org; Wed, 17 Apr 2019 03:35:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1555486514; bh=TSRolHuVVe7wUEQxW3c0xfHTr9Cj1+1Iv7D8E6a3fMY=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=EIvcmZ4f/I9ZAaaoSIgxTdZK9k//1HdSSYR1OBin8pkc3dnyaTFzm3Cn/MjwZVTAI XmCte1G56NyoPRyPaEGDPxOr24O4wULx2M6Lu3SlDdTuaqQPUFZ7fChcWs0bC2NBQr 0+gRQIlCXCEr54RQ34ZXtNO28vmgoDFfJIfTNYeU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.91.243.201]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LjaEi-1gjXGz3dSy-00bezC; Wed, 17 Apr 2019 09:35:14 +0200 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> <87pnpm3yhr.fsf@gmx.de> <83k1fugg6p.fsf@gnu.org> <87h8ax53cn.fsf@gmx.de> Date: Wed, 17 Apr 2019 09:35:12 +0200 In-Reply-To: <87h8ax53cn.fsf@gmx.de> (Michael Albinus's message of "Tue, 16 Apr 2019 18:20:24 +0200") Message-ID: <87a7gpnky7.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:MMbVG0A3eljgXuPFTW4s/oYPDU3DMHYzIhFspsZ/RYxnRrX6ROb tdW0GSz18MsM1Yft2pfDhVeRYLKlKyF3Anepn9aU7x4y2Waai/4cJLUGVqv95XPtjCb6C7h zO+eNshm19FZFlvR2xJEwNLDt8jL3zcAd0er6g4hq5fwKXNvnke9cw2zyFsr0Pe4fm/Br6e znmJSjyxZWTsRGeluyoVw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:vFwSK4HtSIU=:LHUOtT3J7qKlnvk9RQ0Qqr Cr0cYtn4W9yEFQfpmSrrQUxZZPneCXUy5QMyAhFPpw9D3ZeqOHkH2SZz8KKpszzms63oqdyb/ 0Xhfnnc5BGZALOKRA3bA2FlhUU3UaOlVoKT7gvirdo6R0g3KWDxFyOpFmqX8czMkiL4Bj0bZ5 m3UDLKKyPufvqT1kv6JLU3TGCzcMYCoCSeFlrRG0kUnVLyuRnhcMmst8n0jo3+9bbPhpRRaq1 vnM1/O0H4IyPoQx+lRHWRKq3qJT0yKzEjGsIuY6pO2ggjGTXtEE8xjAiWiOCRPri4v/SvkEFG kiUCspu0hjpdVlJ/MmxqqeVxGAwk51a9gG0QSXp02Qw0qISXz5sewJPeewFhUXWMPE96tb3EO 4ut6dPiEukiKubSO3jvGmNZJ2CQPMbmiR1LabJStmdDCKh7HAB67NV4PdIrdU6xsszbcrg8Bv Aeewc8LUBO8Ge0AAv9trhiXvfX71M/a9+rBfjmjJ63FYWAmYm9dHeCVs6OeM0Cbo5LiyCOLpN JY43MFcBDWVhYeYKlmUc2tTSqDw7MWoY/MoqH3qTlo4iA2zt2sBmyvVTK9+Yh+Gs9NvNvaCRE vwyEwHVWlUzITaATRcYmLaXE192UVdqPPgsnz4NH2/9osRR30NZC1nj7tPDf84aY+g5GZjJko wuRRxMQHoP16YR7M3f8BZxI1e7fmBDah2Eub65uw7NEGJQBSWVM64Mch2zgbiLLquv2WNrpoL tWWnQK0iQxyjtIi+ZxJtYOEmxCkAOm8zFpJB5b3h89FQ0HVnFUjfSM8LcIUfvNOwX21xocgM4 QZFzADmCRIh/e8mKpUh2B4dt1i9Da1woagnqeDPR2X6BggHhb42Suq8pLkp4GzGhtLTPuxmpQ zYgQuQc0sTzY16Srw6F+G0u4Kr5q6c5MIsbb0iiUIlSodm0/cAOozEZ+t2GiJl X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, shuguang79@qq.com, npostavs@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Michael Albinus writes: >>> Relative file names are not forbidden as part of exec-path. Shall we b= an >>> them (with an error message)? Or shall we ignore them, silently? Don't= know. >>> >>> I'd vote for the latter (including proper documentation). >> >> Maybe executable-find should ignore them if default-directory is >> remote? > > Or suppress file name handlers if the REMOTE arg is nil? Thinking about, the appropriate solution is quoting `default-directory': --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Transfer-Encoding: quoted-printable *** /tmp/ediffPBChhu 2019-04-17 09:28:24.986244205 +0200 =2D-- /home/albinus/src/emacs/lisp/files.el 2019-04-16 21:48:35.560684261 = +0200 *************** *** 1058,1064 **** (when (stringp res) (file-local-name res))) ;; Use 1 rather than file-executable-p to better match the ;; behavior of call-process. ! (locate-file command exec-path exec-suffixes 1))) (defun load-library (library) "Load the Emacs Lisp library named LIBRARY. =2D-- 1058,1065 ---- (when (stringp res) (file-local-name res))) ;; Use 1 rather than file-executable-p to better match the ;; behavior of call-process. ! (let ((default-directory (file-name-quote default-directory 'top))) ! (locate-file command exec-path exec-suffixes 1)))) (defun load-library (library) "Load the Emacs Lisp library named LIBRARY. --=-=-= Content-Type: text/plain This does not work yet, `locate-file-internal' does not cooperate with a quoted `default-directory'. Will debug. Best regards, Michael. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 17 08:08:37 2019 Received: (at 35241-done) by debbugs.gnu.org; 17 Apr 2019 12:08:37 +0000 Received: from localhost ([127.0.0.1]:39679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGjMh-0003FR-Bf for submit@debbugs.gnu.org; Wed, 17 Apr 2019 08:08:37 -0400 Received: from mout.gmx.net ([212.227.15.19]:53559) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGjMg-0003FF-2i for 35241-done@debbugs.gnu.org; Wed, 17 Apr 2019 08:08:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1555502902; bh=6pxXW7vLUDrOHZrtodTQ/aYqDSf9+hjyA3d3vpp8K9g=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Oig0dbbj+5mt56hCWg/COvNifFbfbX4teDd3g5F96U8lQW72daVUVic9yeuJ09WNi f4EceMu94809gG0IpvGgijUgdGcyARn61ci9l4IKq6a7LSXDcKXlnjeMnWCD1Qvu7B KhaPdap8+9S6+FXdMYBv1GMZ4tdCyla1/l+9YDpo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.91.243.201]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Ma24s-1hK70s0Ns4-00Vu86; Wed, 17 Apr 2019 14:08:22 +0200 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> <87pnpm3yhr.fsf@gmx.de> <83k1fugg6p.fsf@gnu.org> <87h8ax53cn.fsf@gmx.de> <87a7gpnky7.fsf@gmx.de> Date: Wed, 17 Apr 2019 14:08:19 +0200 In-Reply-To: <87a7gpnky7.fsf@gmx.de> (Michael Albinus's message of "Wed, 17 Apr 2019 09:35:12 +0200") Message-ID: <87mukoomvg.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:EtWdldsP5hgXLlkrwB8y8ZlsGuMlAfm2aDZHRgrdVbQwzjWpU9M Ak3lUQyk2ZAWRRcOtgMRVLYiV9owGTNL5aDi8Z0l48xpINbWllqQrwUssWSkE0HyWjI3J+i S2EZun3m84x7PlEfZDIEPyO+yikeqJ95jNMfgzedY185WxgP0uW8p/MLDcfhbD+4jcq+yYp 9O+UvJ/4eNBxgZcUKyTXA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ulaKWuAD2RI=:aakml5BW9BWFTXC8gc/OmX pSlEr7Da6bW1eHlZ81E28qJ7tvMaVUoTzq+EOqOuapj1uCRLY6LBFpP7qDj8SSkB1Yv7gO/Bo WkS3QzBWbnEhYc/fdxaU/hC5e4oibb98+Ox9tHs/HowciezmQHUwAG64QxSKb5Ygl5DXoBIa2 TLAALNyqNhrrHiArseJccL0Ev1AfFl8GKvrEF6CVgMFEHTGvhsp9uMXphPFv2ylh9LTcti9I8 gQ19fYYpNuAKU+yiYiveYfAFpWDn/tmXou4zmF/eUsLdXhBf3Dvy9AgRvwvTW9jLFovnmEQYr Lyth0h0pKDX+nDVxrv8Q66d6XghXYvzBgIUzdRcRtCoLouDXteqhobcQTSCColWwHarTGbDio NrWSBFLWXorn8fL1SGMuzxybF9zTYzs6Wv+XmWQgU0/+J2VKa3jgOsjhFPe+mKSBzZinB3cIh 4HO1N8ttdvEDptWRSZ/2DG/N1NW1jrwCkVWfbQJzuSBHeaaCcFCIspdicmm8mGkL00WBehmWe Aj6G+3HVckTG1R6kjvnEJcrUYGTU5HKMz3lQ/yMEn9OuPd5sUchaRLbOk0I2UH4qRBaOfbodt gZI6EdSg7hX72duVwGA1RLO2L+DWTEhGjR4zSp1XzsB+i1lTAcqTGW9taZPsNIhXn4juQWTNf ix6WnNRUWpt/27TG0iBNwOb+pjx674rBuUSxo07z4e0Hm5u9fJqzWpnd1A9vWxA5ME8drB+cU 4ViXoVJknLNHscbsFqzWyYOUxrYWF8YIx1W6e3X60Z3nv0IpziWDfkBE4+ldbpZCR+bKOf3xs dSxWGrqILvefCqQvPMVHAa7GOW8n3QmmytLTSN7oAFfiCVCZAPaapCYzE5zQK92Z3T5f3Eag1 0q8sfid7irZGjnQCrQCyvbWbrx9rb6gE/0CuD4buHNSqRndH/ypXKgozKdwOo2rmxIPJV3qJW 2eG5NfZf3Mw== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35241-done Cc: 35241-done@debbugs.gnu.org, shuguang79@qq.com, npostavs@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Michael Albinus writes: > Thinking about, the appropriate solution is quoting `default-directory': > > This does not work yet, `locate-file-internal' does not cooperate with a > quoted `default-directory'. Will debug. It was a problem with my local environment, not relevant for the problem. I've pushed the fix and a respective test case to master. Closing the bug. It would be great, if somebody could confirm that `files-tests-executable-find' passes on MS Windows. I cannot test myself. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 17 10:29:33 2019 Received: (at 35241) by debbugs.gnu.org; 17 Apr 2019 14:29:33 +0000 Received: from localhost ([127.0.0.1]:40541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGlZ6-0000Yq-W4 for submit@debbugs.gnu.org; Wed, 17 Apr 2019 10:29:33 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:47018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGlZ4-0000Ya-PZ for 35241@debbugs.gnu.org; Wed, 17 Apr 2019 10:29:31 -0400 Received: by mail-ot1-f68.google.com with SMTP id s24so20807779otk.13 for <35241@debbugs.gnu.org>; Wed, 17 Apr 2019 07:29:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VjcbL4q4MoZ39AAwPwqzp5GaR8jiiM+51dR/nWmUewE=; b=S6s0dlum/HVKNHpa/J5IUqFnzqITc/ZMhvK13lzqLUwuQD60mO4i7SdHk4iqtVc9pD PtU/e74HJ1Vd34qs8tUCtfcHjPDrlsIntGByO7Oz06cWLB7RSR8mUvpBsgld0mzUH1FD 1orZt2P72yolVi9pCEHVkoBQRyrrBNmdZVjM1PykJW9gSKBBDnVdeMRjx6lTPadsXpV9 Ez8U2VFDl25sgB+z6/nxCutTmTVSf8bUCCKz0LANG66E358R6o9JwuOXWvNWv42SU4dI +9EWer/GNx2RuOn36dkErp5LrvOpuseXYNs1Q6SZkIo/LCrOrjG1v6ea/S9DggXNr2uH f9DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VjcbL4q4MoZ39AAwPwqzp5GaR8jiiM+51dR/nWmUewE=; b=Tsd6gTpix/Sh3xJe0pIIdDqqc9m4/2IfioXmYyZwjx1PWMZqkjfcX5KqsX5eKsOZwx Va7sZJg1Ms7+v5WuRiHIIY7a2hl2JWSvau+q8bueh42gpPcba7i+/vfUTRUB84qR1+Eb kM1jegIo39Bj+E6aMOjWwoRZr5Ke1pp350qXQC1LSF8w9Pq/QhWB+dINAisNs1QkiWcC sX6hmVU13q07SGsiv2r0KzazXwWPBBOYIBSnKECXol7rwjJTrS8B2/HvKBx50iWBNlVC uniBdClI3igAqDbRusjdw5qX4GjZnKFoiTRQV0L06a+6hawmsaHzR46p6qgJ6p5iiAWc PMkA== X-Gm-Message-State: APjAAAW2l3Kr/15fSd1+8oVk8iFWV24ogJNeLwtmHyrIeYljNMBFaaKy Rq6KCmzkL7kyLkewwKl/28jDlwu8YNz1biddcbI= X-Google-Smtp-Source: APXvYqzlOS8MhSSWvcBcB0zkDEW1I8LgnrjnNUysi2ZBtJW6TC9sf8nfeJumzOM74cip6/BmctGX5jxKA3er8P8XMrM= X-Received: by 2002:a9d:4799:: with SMTP id b25mr55491393otf.264.1555511363964; Wed, 17 Apr 2019 07:29:23 -0700 (PDT) MIME-Version: 1.0 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> <87pnpm3yhr.fsf@gmx.de> <83k1fugg6p.fsf@gnu.org> <87h8ax53cn.fsf@gmx.de> <87a7gpnky7.fsf@gmx.de> <87mukoomvg.fsf@gmx.de> In-Reply-To: <87mukoomvg.fsf@gmx.de> From: Noam Postavsky Date: Wed, 17 Apr 2019 10:29:11 -0400 Message-ID: Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 To: Michael Albinus Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, Eli Zaretskii , Shuguang Sun X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Wed, 17 Apr 2019 at 08:08, Michael Albinus wrote: > I've pushed the fix and a respective test case to master. Closing the bug. > > It would be great, if somebody could confirm that > `files-tests-executable-find' passes on MS Windows. I cannot test myself. It needed a small change: a file needs to end with .exe or similar to be considered executable on Windows. I pushed a fix. [1: 63a190a]: 2019-04-17 10:27:02 -0400 ; Fix files-tests-executable-find on w32 (Bug#35241) https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=63a190a640f620f49b42e70e9e68f88e61c158b3 From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 17 13:07:40 2019 Received: (at 35241-done) by debbugs.gnu.org; 17 Apr 2019 17:07:40 +0000 Received: from localhost ([127.0.0.1]:40711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGo26-0004Xu-1A for submit@debbugs.gnu.org; Wed, 17 Apr 2019 13:07:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGo24-0004Xh-3D for 35241-done@debbugs.gnu.org; Wed, 17 Apr 2019 13:07:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGo1y-0004GS-Qt; Wed, 17 Apr 2019 13:07:30 -0400 Received: from [176.228.60.248] (port=3064 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hGo1x-00042C-Iz; Wed, 17 Apr 2019 13:07:30 -0400 Date: Wed, 17 Apr 2019 20:07:22 +0300 Message-Id: <831s20ftmd.fsf@gnu.org> From: Eli Zaretskii To: Michael Albinus In-reply-to: <87mukoomvg.fsf@gmx.de> (message from Michael Albinus on Wed, 17 Apr 2019 14:08:19 +0200) Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> <87pnpm3yhr.fsf@gmx.de> <83k1fugg6p.fsf@gnu.org> <87h8ax53cn.fsf@gmx.de> <87a7gpnky7.fsf@gmx.de> <87mukoomvg.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35241-done Cc: 35241-done@debbugs.gnu.org, shuguang79@qq.com, npostavs@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Michael Albinus > Cc: shuguang79@qq.com, 35241-done@debbugs.gnu.org, npostavs@gmail.com > Date: Wed, 17 Apr 2019 14:08:19 +0200 > > It would be great, if somebody could confirm that > `files-tests-executable-find' passes on MS Windows. I cannot test myself. It passes here (after Noam's fixes). Thanks. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 17 15:09:44 2019 Received: (at 35241) by debbugs.gnu.org; 17 Apr 2019 19:09:44 +0000 Received: from localhost ([127.0.0.1]:40765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGpwG-0007ie-FB for submit@debbugs.gnu.org; Wed, 17 Apr 2019 15:09:44 -0400 Received: from mout.gmx.net ([212.227.17.20]:50127) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGpwE-0007iO-6r for 35241@debbugs.gnu.org; Wed, 17 Apr 2019 15:09:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1555528168; bh=KNmJ01IoQz/vPpSrl6wR9CTli/DKJwM6dD+kVMns3h8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=X/GkGbwuOc76BCiaRl5n9IkR+LRNYfr7BqO19+/O0Ppyg/DARzTbHjKVvm5cbvizB +Cfn3psSub0jjJFmVdUiBlV92k7AnpoyMBoW8y3kXsA1NczPqtx9WRXAIaTUAeraad nXEBGKZJhFXt4dfaE0a6CdWOd9ndhTIWpqc4SYMA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([213.220.146.75]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M3u86-1gyl3F3Yx8-00rVwJ; Wed, 17 Apr 2019 21:09:28 +0200 From: Michael Albinus To: Noam Postavsky Subject: Re: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10 References: <875zrezqxm.fsf@gmail.com> <15457.9284878977$1555390524@news.gmane.org> <87sgui5sf6.fsf@gmx.de> <87pnpm3yhr.fsf@gmx.de> <83k1fugg6p.fsf@gnu.org> <87h8ax53cn.fsf@gmx.de> <87a7gpnky7.fsf@gmx.de> <87mukoomvg.fsf@gmx.de> Date: Wed, 17 Apr 2019 21:09:25 +0200 In-Reply-To: (Noam Postavsky's message of "Wed, 17 Apr 2019 10:29:11 -0400") Message-ID: <87ef60o3dm.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:e6zYr1qnOFzW1Zz4wm6k4DUgxARkPiDAuCtss0PQlBHTGrAyhsl 3VgDLmzHJXG+gx6zOXhNmUlJ+auHOKzZXQ9STcYS2srwuPHBI/addt2b+1H2P0IPMP+uCAC 3Y4FGwTmKK13XSi0xhv6uO1i+FHut9MwHVumInN3Hwfp018aBn5Gw8OQUpkYEirvNLl1Hrk wnnQRbXcHit9//EV2C9+Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ywcWx8egsgU=:nv8DCxCdYKoRBaUhNiUD4w CChx1rb9l7X9r+mi99lTyXgibdRp49i1pQm+C985AzKkNoKGxFBhT1NWaAYaUOcczDRZmJZ4Z OR1ov6aSHjf1f0WJX6ha5F1g7vl6WeRmrKaERRLi/XdqC5ZoPE9fOaaIpxZPSr6HpxS8wn2l5 W2asn5BmZXDwTgS77i0wB0MR+AHuOb/+4BbYJXx004XnO2oZ1r23J+VjuNMJj1iyOoluwpP6F 6lYaqz6Oux8i4n8BioqMJ3T5BZd8hnzJDgokiBQbcp/09jsr9w3uBm387E2RIOOWkcmebAKm3 ZmU5UDbNo0O5c/WiZoGC1N1Swv1XwrXx+tQUbhfxz7xFIsqXLs7x+1kvw8pQej3+D1Qen6HWP GyNKK6a4rv5rpN/FoWQEWxXfDCuwKYBahhdRWd+54OtWkTPcZchZK7ljeo9unHo66BPfKQYTQ h0THWe7b05vIx3JDxbVJwzJAVunSDk0ZzMVjZjaN3bQk1EtgvWUhijXL+Cq1ZuGhVSxw6grlK xpCflWKwDA3WnYwM/6QE2oGWTbyzq0TJnMnP2UwcVADflFqchgY8HgDIQdm5/KvUiodKgIlEo V4Hr7qCfwhIdIEeRjZ+UivaR1ZnlF1+HZ9qkInxUBlevWxp9doLAx4eQzkTSAqq/f23ldchJ0 vbKqSmc32RIk+Z/Lw1nzG2gGAafG1YOpGZX7yVna26fAnW/AcBNuim0K4poNBPB1NJpv/VvkX q8SLdWSLALOO39GufDgeb+14M3vD9djvLei5nMFKaxzroMZTzwiFjmSV3zFt9HqcS9Wk+WaZg 41z7OvK2Fxd9rIRwDPD9lwE55vgHVzN3omP21DvjKYFLgwushCx8bKCn7OHVcu9xN1BABQHum e5C2n3fBDplZ9TRumKo/M0kc8cSbrU0KBXkgSgj7IVHtL4YM5Bx2/3CUuJdyGYzWROmQo0TGY EYuS7nPaxng== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35241 Cc: 35241@debbugs.gnu.org, Eli Zaretskii , Shuguang Sun X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Noam Postavsky writes: Hi Noam, > It needed a small change: a file needs to end with .exe or similar to > be considered executable on Windows. I pushed a fix. Thanks! Best regards, Michael. From unknown Sat Jun 21 10:38:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 16 May 2019 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator