From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#39389: 27.0.60; A couple of bugs messing with minibuffer completion of /sudo:: Date: Mon, 10 Feb 2020 10:18:25 +0100 Message-ID: <87v9oe4x7i.fsf@gmx.de> References: <87eevdvvmk.fsf@gmx.de> <0ae56395-5fdd-0892-47d6-556aa902effe@gmail.com> <87a760x3ej.fsf@gmx.de> <9b2b8ce4-97fc-52cf-384d-2ee83ca37251@gmail.com> <875zgowy0b.fsf@gmx.de> <87wo91p076.fsf@gmx.de> <87eev553k0.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="16172"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 39389@debbugs.gnu.org To: Jimmy Yuen Ho Wong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 10 10:19:35 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j15E7-00047w-8J for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Feb 2020 10:19:35 +0100 Original-Received: from localhost ([::1]:58774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j15E6-0005Dn-4D for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Feb 2020 04:19:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43329) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j15Db-0005AH-N0 for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2020 04:19:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j15Da-0000Zd-JY for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2020 04:19:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47709) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j15Da-0000ZF-Be for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2020 04:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j15Da-0001uY-7L for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2020 04:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Feb 2020 09:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39389 X-GNU-PR-Package: emacs Original-Received: via spool by 39389-submit@debbugs.gnu.org id=B39389.15813263157310 (code B ref 39389); Mon, 10 Feb 2020 09:19:02 +0000 Original-Received: (at 39389) by debbugs.gnu.org; 10 Feb 2020 09:18:35 +0000 Original-Received: from localhost ([127.0.0.1]:53682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j15D9-0001tq-5X for submit@debbugs.gnu.org; Mon, 10 Feb 2020 04:18:35 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:49163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j15D7-0001tc-9r for 39389@debbugs.gnu.org; Mon, 10 Feb 2020 04:18:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1581326306; bh=xPIvNyMJS5fuIJo26d46ut2RR5MCXr1RopV8efTyijA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=GT7T4GQ723eJBij7HrFY+sQ08S/80wuIVH8CrWsjDhWpV4PPFlIoKb+vb2wfyIOnx a3gs2f8s6TVEdvbBVmfY3KGz9/YhW3p5ve8iXcnVEk+XaI8i+twitEMcXy+qUu9rXf +iZxKciGcLgMJyTK3mGbtoQhVRgmg3wHzKXrjpJw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef.gmx.de ([212.86.51.13]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MjjCF-1jliMD1QU7-00lCHf; Mon, 10 Feb 2020 10:18:26 +0100 In-Reply-To: (Jimmy Yuen Ho Wong's message of "Sun, 9 Feb 2020 23:44:01 +0000") X-Provags-ID: V03:K1:vySYF4DoHp5o0h5Nm7IJipfVabRLGCUZQr3juFnYuX09xLYCWKt 5XPr4JAMD3f61nyhGLvpNerBI7LjUcts2khEPj64KQc05acdldIEOqybA9fv0C086sAbIdc 0jSFs5Xdp0gnoUnUl/u+o5rwZpW9gc2rjl3l4tjSIj6W/PBV6+TY673i1Tq1h3xknUBQKVx TVoxrd1uRSUhoKuVsEAQQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:o6+8Tjfl45k=:bPI8G+g3zUgj9yNVH5N5Qk 6V6pmRjPf8tzEIbtNw/xl073LaylS50jcO3yeemTUEdkFXOmAzbVHKukhmFE8ok70M2Ej3bLq jx2w+vM7qZDMc6qXyeT9g8g9V9w5tDnqHrBLKP+vLkVDkCJTpyEJwyX37d1nVpwtF/8JGMSrA wr0KNydomnV/564mhqfNQsr0gV8ezIkOldTiaJW5lMu9ecYD7hUDD3xowkwsiwhKwb50hug5y 8s1H7gobp2Jh3YU9PqW6QSxEIumOZz++jzKDAMwxOhTf2WIJRuiUhw5OoWXjhchUQR4TZZ/Mx rPOqSGC7pcdYEQOOYOdQDQT8h6EcVjZAIZFLkwoZ/WsJNdJJu0NcB+PBAMid3vMxhCFX1Pksu 0saesvwP3cEJNfBxTFAIBNS8GXlEYaRrW+T2nftun36jmR0zwtKcgA75hkgMCKgUnLymxxID5 leTJWHxiUGtLV49PrM2fMYYvqzg0lQk1OJQPmzCEGpKSoFmzp/6wbk8uN+aSHUW5kUCVm+2kf VI4iIOi6Pnx4w36lvA77pn4WhHlC6bUAjGX0F3r/l4WFdMvtFGeHAp/o0GbxLU7tJY3SPYUMo xJSWHThSdEedtrHuj92zuYRfbe2b84QsCG651o7IBRC4iC39uhj3yhRGp0R/eDmquk9Jn/hWA M/GtmoefIkD1YCUpI/rpbOW8+fTCGGU/bNXvS+pDYyBRarLrsTrcj+HTosaXlPNKuYNzkxCGO /JR22XIt/yx07UW0oDr9DnizwHfPyrUf8LYP1xVxf8dDhj4WMH2zatSy0VkFo9xwGwZ9Oalm X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:175863 Archived-At: --=-=-= Content-Type: text/plain Jimmy Yuen Ho Wong writes: Hi, > Ok I've found a way to reproduce bug 2 and 3 *without* `exec-path-from-shell`. > > 0. Get on macOS 10.14 > 1. Install [GPGTools](https://gpgtools.org/), this will put the `gpg` > binary into `/usr/local/bin` > 2. env -i /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs -l > tramp --eval '(setq tramp-verbose 10 exec-path (cons "/usr/local/bin/" > exec-path))' /sudo:: > 3. Now the minibuffer prompt will be stuck at Tramp: Sending Password. > 4. C-g to quit. I've attached a backtrace and the logs in *Messages* for this. > 5. The `exec-path` is now `("/usr/local/bin/" "." > "/Applications/MacPorts/Emacs.app/Contents/MacOS/libexec" > "/Applications/MacPorts/Emacs.app/Contents/MacOS/bin")`. It appears as > long as `.` is part of the search paths and `gpg` can be found in any > of the search paths, the prompt will get stuck. > 6. Saving the credentials for `root@localhost` into `~/.authinfo.gpg` > will work around this issue. A relative entry like "." in `exec-path' could be a problem, if `call-process' searches for the gpg command, and `default-directory' is remote. Could you pls check whether the appended patch solves it for you? Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment diff --git a/lisp/tramp.el b/lisp/tramp.el index 7e68b639..4c057703 100644 --- a/lisp/tramp.el +++ b/lisp/tramp.el @@ -4868,7 +4868,8 @@ verbosity of 6." "Read a password from user (compat function). Consults the auth-source package. Invokes `password-read' if available, `read-passwd' else." - (let* ((case-fold-search t) + (let* ((default-directory (tramp-compat-temporary-file-directory)) + (case-fold-search t) (key (tramp-make-tramp-file-name ;; In tramp-sh.el, we must use "password-vector" due to ;; multi-hop. --=-=-=--