On Saturday, 1 October 2016 at 19:32:08 UTC, Andrei Alexandrescu
wrote:
Not like this is real security concern in dmd case but
guidelines like
"don't make /tmp/ path predictable" exist exactly so that one
can have
simple safe default and not worry about possibilities.
This may be a misunderstanding. I'm saying is to switch from
unpredictable paths rooted in /tmp/ to equally unpredictable
paths rooted in /tmp/.dmd-test-run/.
I think that is OK but only if actual file inside the dir is
created with `mktemp --tmpdir=/tmp/.dmd-test-run/` (or using a
similar technique). I wonder if Phobos provides any
cross-platform way to do so - I remember some PR on topic but in
current documentation there seems to be nothing useful mentioned,