]> git.ipfire.org Git - ipfire-2.x.git/commit
unbound-dhcp-leases-bridge: Implement atomic file replacement
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 26 Apr 2024 15:09:17 +0000 (15:09 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 28 Apr 2024 17:23:41 +0000 (17:23 +0000)
commitc3cabfa09cac245f0a950d31d0f4283741017bd5
tree40e5e78ce28a61a3dd8ad5f1ad70ac3eaac76639
parente94f3294c3fe8ffdec04bafab5ed477dfff2be49
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>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/unbound/unbound-dhcp-leases-bridge