homed: when updating local copy of user record, sync to disk

Apparently xfs needs us to sync explicitly, see #15178.
This commit is contained in:
Lennart Poettering 2020-05-20 17:14:51 +02:00
parent 5b3f4a20ea
commit e4005ffe00
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ int home_save_record(Home *h) {
fn = strjoina("/var/lib/systemd/home/", h->user_name, ".identity");
r = write_string_file(fn, text, WRITE_STRING_FILE_ATOMIC|WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_MODE_0600);
r = write_string_file(fn, text, WRITE_STRING_FILE_ATOMIC|WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_MODE_0600|WRITE_STRING_FILE_SYNC);
if (r < 0)
return r;