diff options
author | garga <garga@FreeBSD.org> | 2016-01-07 10:39:13 +0000 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2016-01-07 10:39:13 +0000 |
commit | cc39d2e41ac089ff2f629f360e16724dced3e2fb (patch) | |
tree | 70ed65065eef1b294230f712e8f246f02166ae82 /sys/netinet/tcp_stacks/fastpath.c | |
parent | 76a48b4688ad9db9f1f4cabc9ea88bfedf2bee05 (diff) | |
download | FreeBSD-src-cc39d2e41ac089ff2f629f360e16724dced3e2fb.zip FreeBSD-src-cc39d2e41ac089ff2f629f360e16724dced3e2fb.tar.gz |
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
Diffstat (limited to 'sys/netinet/tcp_stacks/fastpath.c')
0 files changed, 0 insertions, 0 deletions