[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] Prevent passwords from being display in shell mode
From: |
Jérôme Marant |
Subject: |
[patch] Prevent passwords from being display in shell mode |
Date: |
Sun, 10 Oct 2004 10:31:34 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Hi,
Current shell.el does not protect password. Here is a patch.
Cheers,
diff -ur emacs.orig/lisp/ChangeLog emacs/lisp/ChangeLog
--- emacs.orig/lisp/ChangeLog 2004-10-10 10:14:11.000000000 +0200
+++ emacs/lisp/ChangeLog 2004-10-10 10:24:04.000000000 +0200
@@ -1,3 +1,8 @@
+2004-10-10 Jérôme Marant <address@hidden> (tiny change)
+
+ * shell.el (shell-mode): Prevent passwords from being
+ displayed.
+
2004-10-09 Kim F. Storm <address@hidden>
* subr.el (progress-reporter-update): Define before first usage.
diff -ur emacs.orig/lisp/shell.el emacs/lisp/shell.el
--- emacs.orig/lisp/shell.el 2004-10-10 10:16:28.000000000 +0200
+++ emacs/lisp/shell.el 2004-10-10 10:21:02.000000000 +0200
@@ -433,6 +433,8 @@
(make-local-variable 'shell-dirtrackp)
(setq shell-dirtrackp t)
(add-hook 'comint-input-filter-functions 'shell-directory-tracker nil t)
+ ;; Prevent passwords from being displayed
+ (add-hook 'comint-output-filter-functions 'comint-watch-for-password-prompt)
(setq comint-input-autoexpand shell-input-autoexpand)
;; This is not really correct, since the shell buffer does not really
;; edit this directory. But it is useful in the buffer list and menus.
--
Jérôme Marant
- [patch] Prevent passwords from being display in shell mode,
Jérôme Marant <=