]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commit
unbound-dhcp-leases-bridge: Implement atomic file replacement
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 26 Apr 2024 14:55:26 +0000 (16:55 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 26 Apr 2024 14:55:26 +0000 (16:55 +0200)
commit11915ecdebdebce259ad653779cad2468b98fb15
treee5d502dafecc0a68674286b698bc9cf51dc1bf66
parent28e8d436fc14cc2a0bcc16251756951178b8f6f0
unbound-dhcp-leases-bridge: Implement atomic file replacement

This change no longer renames the file, but removes the old link and
creates a new link for the temporary file. That helps us to jump out of
the code at any point without worrying about cleaning up the temporary
file.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/unbound/unbound-dhcp-leases-bridge