From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs 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 Message-ID: <87czel87z5.fsf@gnus.org> References: <87r13511lv.fsf@gmail.com> <87tu7z1yx9.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23668"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56336@debbugs.gnu.org To: Jan =?UTF-8?Q?Syn=C3=A1=C4=8Dek?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 04 12:54:28 2022 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 1o8Jil-0005t5-35 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Jul 2022 12:54:27 +0200 Original-Received: from localhost ([::1]:58388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8Jij-0005dn-Tm for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Jul 2022 06:54:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8JiP-0005da-BY for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2022 06:54:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52335) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8JiL-00010v-Q4 for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2022 06:54:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o8JiL-0001Ii-KK for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2022 06:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jul 2022 10:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56336 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 56336-submit@debbugs.gnu.org id=B56336.16569320094958 (code B ref 56336); Mon, 04 Jul 2022 10:54:01 +0000 Original-Received: (at 56336) by debbugs.gnu.org; 4 Jul 2022 10:53:29 +0000 Original-Received: from localhost ([127.0.0.1]:46232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8Jhp-0001Ht-63 for submit@debbugs.gnu.org; Mon, 04 Jul 2022 06:53:29 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:59874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8Jhn-0001Hh-NP for 56336@debbugs.gnu.org; Mon, 04 Jul 2022 06:53:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ODBKqVTFR2W/GrO+kZqSxO7s5iJjQyuBLqi0TNZ7Ca4=; b=embDbw6a2qDDjuS31FhudLkVda kMTANB7toCH//OblDaxBXZe6T2m4Hm6F0EOInN2f5dQFg2OkrKfvzbXTC8obvZQ09gu6M9K4pEQf9 eGbMP0FKQos2nGX3njygQOmv0x8RWPR/m6KlGtRFy7bssgDMn5jvp79cjoo9SauZfkOA=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8Jhf-0006V2-88; Mon, 04 Jul 2022 12:53:21 +0200 In-Reply-To: ("Jan =?UTF-8?Q?Syn=C3=A1=C4=8Dek?="'s message of "Sun, 3 Jul 2022 18:54:10 +0200") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEXEaDflmFTJxsRW dKVaa4////95E3pLAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YHBAoPKI4xKJsAAAGdSURBVDjLnZPr dcMgDIXhnAyAcQcIkhcwMEBPYP+ZeiVhGzfpnyqOE/NZ6HVxzi1qDubx1T+fTEBMRG/rMCIq5QPA an4HzmNdbDzJDgGXc4+u1u5g8Y9eW++lzx7CDofZA1X44EtpEqGW82U1v5bDRt1LXJaEHy69dly1 DRAGZuzSDAjxXjPS2s6tbsZ/AWSECLWe6R7WW2tVwv8CUl0Vr9avrXQOZYohjbMxBL9Q4pyp5Fx4 gBiXFHxMaQWA7evsgZHunIlL5rKaBLCLvMBzDDcUotn2VrXnkq4/gXfIsh4MM7Aow6Nfg1JgervH wEIkei5TD9GZooIh6i8CWaEn1isLiAKIUgAgYqmPM5uDGgo0gBppBmkA+QiIdLr4EduymoB7pLjq mKSOG9gZoFjlspQHcJnWquqFB00e/qgbEj3Aph4qhtZUcJG2l4CN7HRU7eQVvNt5ZEi0WVaexAG3 5EwoeXR3agkeAvEubWRr+gVwGmIhqMG6i822px2tAMnzGJS6bDpgH2xetdkEN4q3s74dov66BPEt t+D+YT/qaHW8auKAUgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wNy0wNFQxMDoxNTo0MCswMDow MIIhk7YAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDctMDRUMTA6MTU6NDArMDA6MDDzfCsKAAAA AElFTkSuQmCC X-Now-Playing: Joe Jackson's _Big World_: "Tango Atlantico" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:236046 Archived-At: Jan Syn=C3=A1=C4=8Dek 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 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.) --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no