From: Michael Albinus <michael.albinus@gmx.de>
To: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
Cc: 39389@debbugs.gnu.org
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 [thread overview]
Message-ID: <87v9oe4x7i.fsf@gmx.de> (raw)
In-Reply-To: <CAKDRQS6Cy4BdghUVEEjA6H-8KsZgBfYccV3e2cJOSipXdgvOMg@mail.gmail.com> (Jimmy Yuen Ho Wong's message of "Sun, 9 Feb 2020 23:44:01 +0000")
[-- Attachment #1: Type: text/plain, Size: 1228 bytes --]
Jimmy Yuen Ho Wong <wyuenho@gmail.com> 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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 547 bytes --]
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.
next prev parent reply other threads:[~2020-02-10 9:18 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-02 14:50 bug#39389: 27.0.60; A couple of bugs messing with minibuffer completion of /sudo:: Jimmy Yuen Ho Wong
2020-02-02 15:47 ` Michael Albinus
2020-02-02 18:05 ` Jimmy Yuen Ho Wong
2020-02-02 18:14 ` Michael Albinus
2020-02-02 18:30 ` Jimmy Yuen Ho Wong
2020-02-02 20:11 ` Michael Albinus
2020-02-05 13:31 ` Jimmy Yuen Ho Wong
2020-02-05 14:39 ` Michael Albinus
2020-02-08 13:03 ` Jimmy Yuen Ho Wong
2020-02-08 18:36 ` Michael Albinus
2020-02-09 5:22 ` Jimmy Yuen Ho Wong
2020-02-09 23:44 ` Jimmy Yuen Ho Wong
2020-02-10 0:16 ` Jimmy Yuen Ho Wong
2020-02-10 9:23 ` Michael Albinus
2020-02-10 9:18 ` Michael Albinus [this message]
2020-02-10 21:00 ` Jimmy Yuen Ho Wong
2020-02-10 21:06 ` Jimmy Yuen Ho Wong
2020-02-11 8:56 ` Michael Albinus
2020-02-16 19:30 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v9oe4x7i.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=39389@debbugs.gnu.org \
--cc=wyuenho@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.