mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user