From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Colin Walters Newsgroups: gmane.emacs.devel Subject: Re: many packages write to `temporary-file-directory' insecurely Date: 02 Mar 2002 16:12:30 -0500 Message-ID: <1015103550.7365.17.camel@space-ghost> References: <1014945351.23435.102.camel@space-ghost> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: quimby2.netfonds.no 1015104105 30068 195.204.10.66 (2 Mar 2002 21:21:45 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 2 Mar 2002 21:21:45 GMT Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16hGwr-0007ol-00 for ; Sat, 02 Mar 2002 22:21:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16hGqP-0005Ca-00; Sat, 02 Mar 2002 16:15:05 -0500 Original-Received: from [216.185.54.61] (helo=monk.verbum.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16hGpC-00059n-00 for ; Sat, 02 Mar 2002 16:13:50 -0500 Original-Received: from space-ghost.verbum.private (dhcp024-208-188-193.columbus.rr.com [24.208.188.193]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "space-ghost.verbum.org", Issuer "monk.verbum.org" (verified OK)) by monk.verbum.org (Postfix (Debian/GNU)) with ESMTP id 6DD007400083 for ; Sat, 2 Mar 2002 16:13:25 -0500 (EST) Original-Received: by space-ghost.verbum.private (Postfix (Debian/GNU), from userid 1000) id AF295806881; Sat, 2 Mar 2002 16:12:30 -0500 (EST) Original-To: emacs-devel@gnu.org In-Reply-To: X-Mailer: Evolution/1.0 (Preview Release) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1694 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1694 On Sat, 2002-03-02 at 06:52, Pavel Jan=EDk wrote: > + (unless (or (file-symlink-p file) > + (> (or (file-nlinks file) 0) 1)) > + (save-excursion > + (find-file-other-window file) This won't work. There is a race condition in between testing whether or not the file is a symlink, and actually writing the file (which happens in `save-buffer', far below). The right way to do this, I think, is to put the score files in the user's ~/.emacs.d directory. Does anyone object to expanding the use of the .emacs.d directory in this way? _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel