local-ldconfig-fsync
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 18 Oct 2016 21:10:46 +0000 (21:10 +0000)
committerAurelien Jarno <aurel32@debian.org>
Tue, 18 Oct 2016 21:10:46 +0000 (21:10 +0000)
Gbp-Pq: Topic any
Gbp-Pq: Name local-ldconfig-fsync.diff

elf/cache.c

index fbee172012cdfae465cb2f23e198c02910767560..15a1a7ccc5bc383c29b5c0c2d0e89abdc61372b7 100644 (file)
@@ -449,6 +449,7 @@ save_cache (const char *cache_name)
     }
 
   if (write (fd, strings, total_strlen) != (ssize_t) total_strlen
+      || fsync (fd)
       || close (fd))
     error (EXIT_FAILURE, errno, _("Writing of cache data failed"));