12 lines
249 B
Diff
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);
|
|
}
|
|
|