]> git.ipfire.org Git - pakfire.git/commit
snapshots: Do not modify an existing snapshot
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 16 Mar 2023 08:07:57 +0000 (08:07 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 16 Mar 2023 08:07:57 +0000 (08:07 +0000)
commit549c98ad5280a18a01294fc924c5d6d37ce475db
tree0143f5b34f6a676d72e3b09ef2e2a1b8d3593200
parent6889a3d1c482fb7201b0494ea369afa1bff47500
snapshots: Do not modify an existing snapshot

Instead, the routines will now write the new snapshot to a temporary
location and replace it more or less atomically.

Fixes: #13045 - Multiple concurrent instances can destroy the snapshot
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/build.c
src/libpakfire/include/pakfire/snapshot.h
src/libpakfire/snapshot.c
tests/libpakfire/snapshot.c