dhcpv6-ia : write statefile atomically
authorHans Dedecker <dedeckeh@gmail.com>
Sat, 8 Aug 2020 23:08:23 +0000 (19:08 -0400)
committerHans Dedecker <dedeckeh@gmail.com>
Sun, 15 Nov 2020 17:33:22 +0000 (18:33 +0100)
commitfb55e80394c51d7502bb278f57520dec15a11355
treed95477035551829e564a4268708de964d35a430a
parent735c7836bfcc08f3ecd8cdaf1368665b8a241b94
dhcpv6-ia : write statefile atomically

Applications (e.g. unbound) need a consistent view of the statefile;
therefore write all the lease info to a temporary file which is later
renamed to the configured statefile name

Suggested-by : John Fremlin <john@fremlin.org>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv6-ia.c