From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#17839: 24.4.50; read-passwd echoes password input in non-interactive sessions Date: Tue, 24 Jun 2014 14:41:51 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1403635335 21112 80.91.229.3 (24 Jun 2014 18:42:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Jun 2014 18:42:15 +0000 (UTC) Cc: Andreas Schwab , 17839@debbugs.gnu.org To: Sebastian Wiesner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 24 20:42:07 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WzVfT-0006LV-Ey for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jun 2014 20:42:07 +0200 Original-Received: from localhost ([::1]:33353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzVfT-0006is-38 for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jun 2014 14:42:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzVfQ-0006gq-A6 for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 14:42:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzVfP-0000a4-I8 for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 14:42:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzVfP-0000Zv-Fw for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 14:42:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WzVfO-0000xZ-NS for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 14:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Jun 2014 18:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17839 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17839-submit@debbugs.gnu.org id=B17839.14036353173675 (code B ref 17839); Tue, 24 Jun 2014 18:42:02 +0000 Original-Received: (at 17839) by debbugs.gnu.org; 24 Jun 2014 18:41:57 +0000 Original-Received: from localhost ([127.0.0.1]:59588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WzVfI-0000xC-D8 for submit@debbugs.gnu.org; Tue, 24 Jun 2014 14:41:56 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:35653 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WzVfF-0000wz-3V for 17839@debbugs.gnu.org; Tue, 24 Jun 2014 14:41:53 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WzVfD-00075r-OO; Tue, 24 Jun 2014 14:41:51 -0400 X-Spook: lynch hackers Dick Cheney infowar cryptographic Islam X-Ran: .k=QdL;OBybv1UV@(ZAZR(_UL3S:aR#{}NaE/#$p(`/?i)duZ$LQtJ,J@n&@!\MJuFv}Ke X-Hue: magenta X-Attribution: GM In-Reply-To: (Sebastian Wiesner's message of "Mon, 23 Jun 2014 18:52:34 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90751 Archived-At: Sebastian Wiesner wrote: >> Batch mode isn't designed for interaction. It uses standard I/O, >> oblivious to who is consuming the input. > > In this case `read-passwd' should at least signal an error when called > in non-interactive mode, I think that would be overkill. > and have a warning in its doctoring. A notice perhaps. > Currently it is simply insecure in non-interactive mode, and neither > its docstring nor the Emacs Lisp manual document that the password is > exposed when called in non-interactive mode. It's in the manual section on minibuffer input, and in batch mode there is no minibuffer. For example, read-file-name doesn't offer completion in batch-mode. It doesn't provide history. ctrl-k doesn't work. Etc. I see no point in mentioning these things in the doc-string of every function that uses the minibuffer. But yes, read-passwd is a slightly special case and could stand to mention batch mode in its doc.