1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00
freebsd/usr.sbin/services_mkdb
Renato Botelho 3aefe8928a 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
MFC after:	1 week
Sponsored by:	Netgate
Differential Revision:	https://reviews.freebsd.org/D2982
2016-01-07 10:39:13 +00:00
..
extern.h Similar to cap_mkdb(1), add endianness support to services_mkdb(1) 2014-01-22 16:50:18 +00:00
Makefile Convert usr.sbin to LIBADD 2014-11-25 16:57:27 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
services_mkdb.8 Similar to cap_mkdb(1), add endianness support to services_mkdb(1) 2014-01-22 16:50:18 +00:00
services_mkdb.c Make cap_mkdb and services_mkdb file operations sync 2016-01-07 10:39:13 +00:00
uniq.c Move uniq() prototype into extern.h. 2012-10-20 10:34:55 +00:00