GNU bug report logs - #56336
28.1.90; [28.1] Emacs prompts for password when output from async command contains "password:"

Previous Next

Package: emacs;

Reported by: Jan Synáček <jan.synacek <at> gmail.com>

Date: Fri, 1 Jul 2022 12:14:01 UTC

Severity: normal

Tags: moreinfo

Found in version 28.1.90

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Jan Synáček <jan.synacek <at> gmail.com>
Cc: 56336 <at> debbugs.gnu.org
Subject: bug#56336: 28.1.90; [28.1] Emacs prompts for password when output from async command contains "password:"
Date: Mon, 04 Jul 2022 12:53:18 +0200
Jan Synáček <jan.synacek <at> gmail.com> writes:

> Well, I know about one thing that might work well enough as an
> additional heuristic just for this case.
>
> It seems that if a command only outputs to stdout (and probably to
> stderr as well) and doesn't really ask for input, lsof -p <that async
> process> shows something like this:
> $ lsof -p 145475

[...]

> Note the /dev/tty in the output. I'm not sure, but I think this might
> be good enough.

It's not portable across operating systems, though.  (And the processes
may play shenanigans with detaching and spawning other processes that
then ask for a password (think xdg-open and friends), so it's not
reliable on Linux either.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 2 years and 351 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.