Blame emacs-CVE-2014-3423.patch
|
Petr Hracek |
c88b79 |
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
|
|
Petr Hracek |
c88b79 |
index 19e513a..1a28e26 100644
|
|
Petr Hracek |
c88b79 |
--- a/lisp/net/browse-url.el
|
|
Petr Hracek |
c88b79 |
+++ b/lisp/net/browse-url.el
|
|
Petr Hracek |
c88b79 |
@@ -1335,7 +1335,10 @@ used instead of `browse-url-new-window-flag'."
|
|
Petr Hracek |
c88b79 |
(kill-buffer nil)))
|
|
Petr Hracek |
c88b79 |
(if (and pid (zerop (signal-process pid 0))) ; Mosaic running
|
|
Petr Hracek |
c88b79 |
(save-excursion
|
|
Petr Hracek |
c88b79 |
- (find-file (format "/tmp/Mosaic.%d" pid))
|
|
Petr Hracek |
c88b79 |
+ ;; This is a predictable temp-file name, which is bad,
|
|
Petr Hracek |
c88b79 |
+ ;; but it is what Mosaic uses/used.
|
|
Petr Hracek |
c88b79 |
+ ;; So it's not Emacs's problem. http://bugs.debian.org/747100
|
|
Petr Hracek |
c88b79 |
+ (find-file (format "/tmp/Mosaic.%d" pid))
|
|
Petr Hracek |
c88b79 |
(erase-buffer)
|
|
Petr Hracek |
c88b79 |
(insert (if (browse-url-maybe-new-window new-window)
|
|
Petr Hracek |
c88b79 |
"newwin\n"
|