aboutsummaryrefslogtreecommitdiff
path: root/website/static/security/patches/EN-16:06/libc.patch
blob: 422b6eeacdb42933ce9701acab8957f85f278432 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- 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);
 	}