From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: doc-view cache file permissions Date: Tue, 30 Oct 2007 20:52:28 -0400 Message-ID: References: <7gk5p448xq.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193791962 17943 80.91.229.12 (31 Oct 2007 00:52:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2007 00:52:42 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 31 01:52:45 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1In1p6-0003vB-1t for ged-emacs-devel@m.gmane.org; Wed, 31 Oct 2007 01:52:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1In1ow-0007FT-Jz for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 20:52:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1In1ot-0007Ep-DV for emacs-devel@gnu.org; Tue, 30 Oct 2007 20:52:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1In1os-0007EW-Ct for emacs-devel@gnu.org; Tue, 30 Oct 2007 20:52:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1In1os-0007EM-8I for emacs-devel@gnu.org; Tue, 30 Oct 2007 20:52:30 -0400 Original-Received: from tomts43.bellnexxia.net ([209.226.175.110] helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1In1or-0005wK-RB for emacs-devel@gnu.org; Tue, 30 Oct 2007 20:52:30 -0400 Original-Received: from pastel.home ([74.12.208.145]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20071031005228.QAPX26794.tomts43-srv.bellnexxia.net@pastel.home> for ; Tue, 30 Oct 2007 20:52:28 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 968938176; Tue, 30 Oct 2007 20:52:28 -0400 (EDT) In-Reply-To: (Reiner Steib's message of "Tue\, 30 Oct 2007 23\:14\:59 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:82180 Archived-At: >>> + ;; Try and make sure doc-view-cache-directory exists and is safe. > [...] >> Is that worthy of being the basis of a more generally available >> `make-secure-directory' function? > Isn't `make-temp-file' with `dir-flag' set supposed to create a secure > directory? Yes, indeed. But the author of doc-view decided to try and keep the png images (generated from the .pdf or .dvi file) and reuse them across invocations if the file hasn't changed in between. So the "temporary" directory needs to be at a well-known location, so make-temp-file can't be used. Stefan