Code

src/utils_rrdcreate.c: Lock files to be created.
authorFlorian Forster <octo@collectd.org>
Sun, 24 Feb 2013 09:33:51 +0000 (10:33 +0100)
committerFlorian Forster <octo@collectd.org>
Sun, 24 Feb 2013 09:33:51 +0000 (10:33 +0100)
commit9effaec7a35cf426a4cd423ec8200807be07c1fd
treea1d2d395ab9c791ce011196aadee310fe9c7e2ad
parent0356eb4e9284425d61c63ea0c2004b8a6e2f5d45
src/utils_rrdcreate.c: Lock files to be created.

This works around an issue where RRDtool crashes due to two threads
trying to create the same file at the same time. This shouldn't happen
in normal operation, but an attacker could cause this, e.g. with
specially crafted network packets.
src/utils_rrdcreate.c