Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/emacs/files: emacs-22.2-python-nopwd.patch
Date: Tue, 02 Sep 2008 22:05:28
Message-Id: E1Kae05-0003aH-NU@stork.gentoo.org
1 ulm 08/09/02 22:05:25
2
3 Added: emacs-22.2-python-nopwd.patch
4 Log:
5 Fix search path for interactive python, security bug 236498.
6 (Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 i686)
7
8 Revision Changes Path
9 1.1 app-editors/emacs/files/emacs-22.2-python-nopwd.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs/files/emacs-22.2-python-nopwd.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs/files/emacs-22.2-python-nopwd.patch?rev=1.1&content-type=text/plain
13
14 Index: emacs-22.2-python-nopwd.patch
15 ===================================================================
16 --- emacs-22.2-orig/lisp/progmodes/python.el 2008-01-21 01:25:09.000000000 +0100
17 +++ emacs-22.2/lisp/progmodes/python.el 2008-09-02 22:58:11.000000000 +0200
18 @@ -1355,7 +1355,9 @@
19 ;; invoked. Would support multiple processes better.
20 (when (or new (not (comint-check-proc python-buffer)))
21 (with-current-buffer
22 - (let* ((cmdlist (append (python-args-to-list cmd) '("-i")))
23 + (let* ((cmdlist
24 + (append (python-args-to-list cmd)
25 + '("-i" "-c" "import sys; sys.path.remove('')")))
26 (path (getenv "PYTHONPATH"))
27 (process-environment ; to import emacs.py
28 (cons (concat "PYTHONPATH=" data-directory