aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-02-21 10:42:48 +0100
committerFlorian Weimer <fweimer@redhat.com>2018-02-21 10:42:48 +0100
commit999a6dab3ee1c8e77bb348ba2389e7aeb5c062b2 (patch)
treeb88f28c02d2f98d8576f021b8d441814d848133b /ChangeLog
parent52a01100ad011293197637e42b5be1a479a2f4ae (diff)
downloadglibc-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--ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a56f1fa..25b8e12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.