GNU bug report logs - #35729
[PATCH] OpenVPN password prompts are not recognized by comint.el OpenVPN has a password prompt that is a little different than is handled by comint.el. It looks like this:

Previous Next

Package: emacs;

Reported by: mjbauer95 <at> gmail.com

Date: Tue, 14 May 2019 14:36:01 UTC

Severity: minor

Tags: fixed, patch

Merged with 35724, 37684

Found in version 24.5

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35729 in the body.
You can then email your comments to 35729 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#35729; Package emacs. (Tue, 14 May 2019 14:36:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to mjbauer95 <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 14 May 2019 14:36:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: mjbauer95 <at> gmail.com
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] OpenVPN password prompts are not recognized by comint.el
 OpenVPN has a password prompt that is a little different than is handled by
 comint.el. It looks like this:
Date: Mon, 13 May 2019 18:53:46 -0400
[Message part 1 (text/plain, inline)]
  Enter Auth Password:

 As a result, the plain text password is chown when entering in through shell-mode. The attached patch adds to ‘comint-password-prompt-regexp’ handling for this case.

 
[0001-Add-Enter-Auth-prompt-handling-for-OpenVPN-prompts.patch (text/x-patch, inline)]
From 09adfe3c413ee75aa1f31548907d9d1a7c6b6e6b Mon Sep 17 00:00:00 2001
From: Matthew Bauer <mjbauer95 <at> gmail.com>
Date: Mon, 13 May 2019 18:39:32 -0400
Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=9CEnter=20Auth=E2=80=9D=20prompt?=
 =?UTF-8?q?=20handling=20for=20OpenVPN=20prompts?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

OpenVPN prompts look like:

  Enter Auth Password:

This adds handling for that in comint-password-prompt-regexp.
---
 lisp/comint.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/comint.el b/lisp/comint.el
index d21cc1378f..3dce1c9c8d 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -356,7 +356,7 @@ This variable is buffer-local."
    "\\(^ *\\|"
    (regexp-opt
     '("Enter" "enter" "Enter same" "enter same" "Enter the" "enter the"
-      "Old" "old" "New" "new" "'s" "login"
+      "Enter Auth" "Old" "old" "New" "new" "'s" "login"
       "Kerberos" "CVS" "UNIX" " SMB" "LDAP" "PEM" "SUDO"
       "[sudo]" "Repeat" "Bad" "Retype")
     t)
-- 
2.21.0


Merged 35724 35729. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 14 May 2019 14:59:02 GMT) Full text and rfc822 format available.

Severity set to 'minor' from 'normal' Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 16 May 2019 12:00:03 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 24 May 2019 11:35:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 35724 <at> debbugs.gnu.org and mjbauer95 <at> gmail.com Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 24 May 2019 11:35:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 22 Jun 2019 11:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Wed, 09 Oct 2019 20:16:01 GMT) Full text and rfc822 format available.

Forcibly Merged 35724 35729 37684. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Wed, 09 Oct 2019 20:16:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 07 Nov 2019 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 170 days ago.

Previous Next


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