diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-02-21 10:42:48 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-02-21 10:42:48 +0100 |
commit | 999a6dab3ee1c8e77bb348ba2389e7aeb5c062b2 (patch) | |
tree | b88f28c02d2f98d8576f021b8d441814d848133b /ChangeLog | |
parent | 52a01100ad011293197637e42b5be1a479a2f4ae (diff) | |
download | glibc-999a6dab3ee1c8e77bb348ba2389e7aeb5c062b2.zip glibc-999a6dab3ee1c8e77bb348ba2389e7aeb5c062b2.tar.gz glibc-999a6dab3ee1c8e77bb348ba2389e7aeb5c062b2.tar.bz2 |
ldconfig: Sync temporary files to disk before renaming them [BZ #20890]
If the system crashes before the file data has been written to disk, the
file system recovery upon the next mount may restore a partially
rewritten temporary file under the non-temporary (final) name (after the
rename operation).
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,13 @@ 2018-02-21 Florian Weimer <fweimer@redhat.com> + [BZ #20890] + * elf/cache.c (save_cache): Call fsync on temporary file before + renaming it. + (save_aux_cache): Call fdatasync on temporary file before renaming + it. + +2018-02-21 Florian Weimer <fweimer@redhat.com> + [BZ #22787] * include/caller.h: Remove file. * elf/dl-caller.c: Likewise. |