emacs-devel
[Top][All Lists]
Advanced

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

Re: many packages write to `temporary-file-directory' insecurely


From: Colin Walters
Subject: Re: many packages write to `temporary-file-directory' insecurely
Date: 02 Mar 2002 16:12:30 -0500

On Sat, 2002-03-02 at 06:52, Pavel Janík 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?




reply via email to

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