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
..
2013-03-17 06:54:04 +00:00
2015-09-25 22:19:35 +00:00
2015-10-13 18:56:50 +00:00
2015-04-12 21:28:54 +00:00
2013-07-10 07:40:30 +00:00
2015-05-21 13:42:37 +00:00
2016-01-08 03:02:19 +00:00
2015-06-28 03:22:26 +00:00
2015-06-28 03:22:26 +00:00
2015-09-04 15:45:42 +00:00
2015-11-24 12:25:34 +00:00
2016-01-11 20:10:14 +00:00
2015-11-19 00:14:23 +00:00
2015-12-04 19:16:56 +00:00
2015-07-24 19:21:48 +00:00
2014-03-27 20:19:11 +00:00
2016-01-08 02:56:21 +00:00
2015-06-01 09:04:57 +00:00
2012-10-07 19:53:04 +00:00
2016-01-07 00:40:51 +00:00
2014-07-02 13:09:26 +00:00
2016-01-07 00:40:51 +00:00
2015-12-21 09:34:45 +00:00
2014-05-09 15:55:45 +00:00
2015-07-01 15:03:49 +00:00
2013-05-10 16:41:26 +00:00
2012-11-20 02:12:01 +00:00
2014-03-26 07:31:57 +00:00
2015-10-02 16:21:14 +00:00
2014-11-03 10:26:29 +00:00
2015-10-13 18:56:50 +00:00
2016-01-12 16:38:09 +00:00
2016-01-07 00:40:51 +00:00
2014-12-05 07:51:50 +00:00
2016-01-08 23:58:32 +00:00
2015-09-25 01:17:24 +00:00
2015-01-09 03:26:18 +00:00
2015-09-20 22:27:19 +00:00
2016-01-11 20:25:41 +00:00
2015-10-29 16:34:55 +00:00
2016-01-07 00:40:51 +00:00
2015-07-30 04:53:53 +00:00
2016-01-07 00:40:51 +00:00
2012-09-01 10:56:15 +00:00
2015-12-04 19:16:56 +00:00
2016-01-06 17:48:35 +00:00
2016-01-07 00:40:51 +00:00
2015-10-02 16:22:21 +00:00
2016-01-07 00:40:51 +00:00
2015-05-30 01:04:45 +00:00
2013-04-11 18:46:41 +00:00
2013-12-13 00:56:05 +00:00
2016-01-07 00:40:51 +00:00
2012-05-17 11:50:12 +00:00
2015-12-04 18:22:31 +00:00
2016-01-07 00:40:51 +00:00
2016-01-07 00:40:51 +00:00
2015-12-14 22:54:02 +00:00
2014-10-17 19:55:12 +00:00
2016-01-11 01:09:50 +00:00
2015-10-13 18:56:50 +00:00
2015-11-13 22:33:51 +00:00
2015-09-15 05:56:16 +00:00
2014-05-30 15:00:50 +00:00
2015-10-02 14:11:44 +00:00
2016-01-07 00:40:51 +00:00
2016-01-07 00:40:51 +00:00
2016-01-11 19:26:18 +00:00
2015-07-06 13:01:01 +00:00
2014-10-09 23:30:51 +00:00
2015-01-28 21:51:34 +00:00
2015-01-28 21:51:34 +00:00
2015-12-04 19:16:56 +00:00
2014-12-31 23:25:37 +00:00
2015-11-15 07:10:02 +00:00
2016-01-07 00:40:51 +00:00
2015-12-04 19:16:56 +00:00
2016-01-12 05:55:28 +00:00
2016-01-14 14:18:10 +00:00
2013-09-07 20:25:22 +00:00
2015-12-04 19:16:56 +00:00
2015-12-04 19:16:56 +00:00
2013-04-22 18:31:39 +00:00
2016-01-07 00:40:51 +00:00
2015-12-29 01:08:58 +00:00
2014-11-19 08:56:38 +00:00
2014-06-04 10:33:30 +00:00
2013-05-12 22:22:12 +00:00
2015-10-29 16:45:06 +00:00
2014-04-17 10:37:21 +00:00
2015-10-13 18:56:50 +00:00
2016-01-07 00:40:51 +00:00
2016-01-07 00:40:51 +00:00
2015-12-04 18:21:05 +00:00
2015-02-11 07:21:16 +00:00