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

Re: Old Hundred Eyes review of svn_io_temp_dir requested

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2003-11-11 16:01:53 CET

On Tue, 2003-11-11 at 04:59, Branko ╚ibej wrote:
> >Don't recall a $TEMP environment variable in unix. Maybe I misunderstood you?
> Subversion does not run only on Unix.

As with config files, this is not a case where we should try to do the
same thing on all platforms. Nor should we just be canvassing the
mailing list for temp directory ideas and trying all of them.

On Unix, /tmp is appropriate for files which should not survive a reboot
(temporary files for keyword translation, "svn diff" temporary files,
etc.). /var/tmp is appropriate for files which should survive a reboot
(log messages when we aren't using the working dir, or maybe just all
log messages for consistency). /usr/tmp is an antiquated convention on
all the platforms I work with, but it might still be in use on something
awful like HPUX; if we are going to use it at all, we should use it as a
fallback for /var/tmp.

I'm failing to find good information about $TMPDIR. It's primarily used
by the antiquated tempnam() libc function, but Linux and *BSD seem to
disagree about whether tempnam() returns paths in /tmp or /var/tmp.
Applications aren't very consistent about how they use it. I think the
best thing to do is to use $TMPDIR in preference to either /tmp or
/var/tmp.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 11 16:04:01 2003

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