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