Skip to content

Commit

Permalink
homed: when updating local copy of user record, sync to disk
Browse files Browse the repository at this point in the history
Apparently xfs needs us to sync explicitly, see #15178.
  • Loading branch information
poettering committed May 21, 2020
1 parent 5b3f4a2 commit e4005ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/home/homed-home.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e4005ff

Please sign in to comment.