[Top][All Lists]
[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?
- Re: many packages write to `temporary-file-directory' insecurely, Pavel Janík, 2002/03/02
- Re: many packages write to `temporary-file-directory' insecurely,
Colin Walters <=
- Re: many packages write to `temporary-file-directory' insecurely, Pavel Janík, 2002/03/02
- Re: many packages write to `temporary-file-directory' insecurely, Stefan Monnier, 2002/03/03
- Re: many packages write to `temporary-file-directory' insecurely, Al Petrofsky, 2002/03/03
- Re: many packages write to `temporary-file-directory' insecurely, Stefan Monnier, 2002/03/03
- Re: many packages write to `temporary-file-directory' insecurely, Richard Stallman, 2002/03/04
- Re: many packages write to `temporary-file-directory' insecurely, Al Petrofsky, 2002/03/04
- Re: many packages write to `temporary-file-directory' insecurely, Stefan Monnier, 2002/03/05
- Re: many packages write to `temporary-file-directory' insecurely, Al Petrofsky, 2002/03/05
- Re: many packages write to `temporary-file-directory' insecurely, Richard Stallman, 2002/03/05
- Re: many packages write to `temporary-file-directory' insecurely, Richard Stallman, 2002/03/04