[darcs-users] Tmpdirs aren't unique.

David Brown darcs at davidb.org
Mon Apr 5 15:26:13 UTC 2004


I haven't tried generating it, but looking at the source, it looks like
there might be a problem with non-uniqueness of dirs in /tmp/.  What
happens if multiple users on a system run a darcs command that tries to
create the same directory in /tmp/?

An easy solution would be to prefix the directory name with something
unique (such as a pid).  This would still be possible for a malicious
person to mess with.

Another solution would be to use 'mkdtemp', at least when it is
available.

Dave Brown




More information about the darcs-users mailing list