doc/share/security/patches/SA-16:06/libc.patch
Gleb Smirnoff cf13b85a51 Publish todays advisory and notices:
- SA-16:17.openssl
- EN-16:06.libc
- EN-16:07.ipi
- EN-16:08.zfs

Approved by:	so
2016-05-04 22:52:54 +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);
}