garga e76139f566 MFC r293312:
Make cap_mkdb and services_mkdb file operations sync

Similar fix was done for passwd and group operations in r285050. When a
temporary file is created and then renamed to replace official file there
are no checks to make sure data was written to disk and if a power cycle
happens at this time, system can end up with a 0 length file

Approved by:	bapt
Sponsored by:	Netgate
Differential Revision:	https://reviews.freebsd.org/D2982
2016-01-14 14:18:10 +00:00
..
2014-03-11 15:28:41 +00:00
2014-03-11 15:28:41 +00:00
2016-01-14 14:18:10 +00:00