Anyone has time for a unittesting issue?

Vladimir Panteleev via Digitalmars-d digitalmars-d at puremagic.com
Sat Oct 1 15:06:09 PDT 2016


On Saturday, 1 October 2016 at 17:35:29 UTC, Andrei Alexandrescu 
wrote:
> I think /tmp/ is mounted per user so we should be good.

I have never seen this. In fact, I'm not familiar with any 
mechanisms of "per-user" mounts on POSIX systems.

The general practice of creating files in /tmp/ is to either put 
the UID in the filename, or use unique random filenames (e.g. via 
mkstemp).

If this is security-sensitive, we should not be dismissive about 
any aspects of this.

> It would also be nice to have a VERY SIMPLE mechanism to delete 
> old runs (e.g. a day or more).

FWIW, systemd mounts /tmp as a tmpfs, and OS X seems to delete 
files in /tmp older than 3 days.



More information about the Digitalmars-d mailing list