projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b3f4a2
)
homed: when updating local copy of user record, sync to disk
author
Lennart Poettering
<lennart@poettering.net>
Wed, 20 May 2020 15:14:51 +0000
(17:14 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 21 May 2020 21:28:49 +0000
(23:28 +0200)
Apparently xfs needs us to sync explicitly, see #15178.
src/home/homed-home.c
patch
|
blob
|
history
diff --git
a/src/home/homed-home.c
b/src/home/homed-home.c
index cf11c05d6025c4bce7b32f0bff34b3d3a0ddcc38..47ee7d23281c5e80936b6ee0fa85dc4c71c3c808 100644
(file)
--- a/
src/home/homed-home.c
+++ b/
src/home/homed-home.c
@@
-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;