activation test: Fix time-of-check/time-of-use bug waiting to happen
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 15 Feb 2017 17:24:14 +0000 (17:24 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 16 Feb 2017 13:28:49 +0000 (13:28 +0000)
commit1488f02d9e34a3ef0710dace2b1e92cbc30cd99d
tree8cba257b38200cd6fc7b22a1b600655ca15f7677
parentbe51bfe915af717aa462fc7957e5a3c6dabc746b
activation test: Fix time-of-check/time-of-use bug waiting to happen

Creating a directory is atomic, stat'ing it to see whether to remove
it is very much not.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99828
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
bus/activation.c