Subject: bug#35241: 27.0.50; Tramp can't decrypt .authinfo.gpg in Win 10

From: Michael Albinus <[email-masked]>
Date: Tue, 16 Apr 2019 09:18:53 +0200

Shuguang Sun <[email-masked]> 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:[email-masked]:")
>   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.