emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

printing.el PS preview creates world-readable files in /tmp


From: Glenn Morris
Subject: printing.el PS preview creates world-readable files in /tmp
Date: Tue, 09 Nov 2004 19:43:53 +0000
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Well, actually it creates pr-ps-temp-file with whatever the default
mask settings are; but I think it should be more restrictive (or use a
private subdirectory in /tmp like the emacs server does).


Example:

umask 022
echo private > foo.txt
chmod 600 foo.txt

emacs -q --no-site-file foo.txt
(require 'printing)
(pr-ps-buffer-preview 1)


This creates /tmp/prspool.ps (a file which remains after the
previewing gv and indeed emacs has exited) as world-readable.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]