[darcs-devel] [issue1172] temporary file created in silly place
Trent Buck
bugs at darcs.net
Sun Oct 26 09:15:54 UTC 2008
Trent Buck <trentbuck at gmail.com> added the comment:
On Sun, Oct 26, 2008 at 09:00:53AM -0000, Juliusz Chroboczek wrote:
>> Darcs should probably use ${TMPDIR:-/tmp} for temporary files.
>
> No, it shouldn't. Darcs will sometimes rename a temporary file over
> a real file, for that to work efficiently the temp file needs to be
> in the same directory as the file it's going to be removed over.
I'd rather it worked inefficiently than not at all. I believe the
transcript demonstrates that the "efficient" method at least needs to
be taught about edge cases, because its assumptions are not always
valid.
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1172>
__________________________________
More information about the darcs-devel
mailing list