[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: psvn.el: insecure temporary files

From: Kalle Olavi Niemitalo <kon_at_iki.fi>
Date: 2003-08-09 20:47:57 CEST

Fumitoshi UKAI <ukai@debian.or.jp> writes:

> FYI, apel ftp://ftp.m17n.org/pub/mule/apel/ 10.5 or later has
> `make-temp-name' implementation for XEmacs or older Emacs.

I think you mean make-temp-file. The APEL implementation
apparently creates a temporary directory atomically, creates the
temporary file there, hardlinks the file to the final place
atomically, and finally unlinks it from the directory and removes
the directory. There is also another version of make-temp-file
for single-user operating systems that don't support hard links.

I doubt it's a good idea to copy all this code into psvn, and
adding a dependency on APEL doesn't seem attractive either.

Do more recent versions of XEmacs have a way to pass O_EXCL to
open()?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 9 20:48:56 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.