doc/share/security/patches/EN-16:06/libc.patch
Gleb Smirnoff 4226a20249 Commit the EN-16:06 patch.
Reported by:	Robert Ames <robertames hotmail.com>
2016-05-06 21:34:06 +00:00

12 lines
249 B
Diff

--- lib/libc/db/hash/hash.c.orig
+++ lib/libc/db/hash/hash.c
@@ -423,7 +423,8 @@
free(hashp->tmp_buf);
if (hashp->fp != -1) {
- (void)_fsync(hashp->fp);
+ if (hashp->save_file)
+ (void)_fsync(hashp->fp);
(void)_close(hashp->fp);
}