tree-wide: start properly syncing at various places we so far didn't

Let's better be safe than sorry, and install files fully safely now that
is is easy.
This commit is contained in:
Lennart Poettering
2023-06-13 09:50:10 +02:00
parent 74402bf01a
commit 8dfd099b50
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -408,7 +408,7 @@ static int trie_store(struct trie *trie, const char *filename, bool compat) {
return -errno;
fwrite(&h, sizeof(struct trie_header_f), 1, f);
r = flink_tmpfile(f, filename_tmp, filename, LINK_TMPFILE_REPLACE);
r = flink_tmpfile(f, filename_tmp, filename, LINK_TMPFILE_REPLACE|LINK_TMPFILE_SYNC);
if (r < 0)
return r;