termux-packages/disabled-packages/dgsh/core-tools-src-dgsh-tee.c.patch

12 lines
412 B
Diff
Raw Normal View History

2022-01-06 17:38:15 +01:00
--- a/core-tools/src/dgsh-tee.c
+++ b/core-tools/src/dgsh-tee.c
@@ -439,7 +439,7 @@
#ifdef FALLOC_FL_PUNCH_HOLE
static bool warned = false;
- if (fallocate(tmp_fd, FALLOC_FL_PUNCH_HOLE, pool * buffer_size, buffer_size) < 0 &&
+ if (fallocate(bp->page_file_fd, FALLOC_FL_PUNCH_HOLE, pool * buffer_size, buffer_size) < 0 &&
!warned) {
warn("Failed to free temporary buffer space");
warned = true;