]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
unbound-dhcp-leases-bridge: Replace leases file atomically
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 28 Mar 2019 12:51:06 +0000 (12:51 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 28 Mar 2019 12:51:06 +0000 (12:51 +0000)
When there is a large number of leases, writing the file may
take a long time. When unbound is re-reading its configuration
in that time, the file might syntactically incorrect.

This change writes the file first and then moves it
to the right place in one transaction.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>

No differences found