0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-21 22:06:17 +00:00
termux-packages/disabled-packages/dgsh/core-tools-src-dgsh-tee.c.patch
Tee KOBAYASHI 272f30ead3 dgsh: Move to disabled packages
due to not being properly packaged.

See https://github.com/termux/termux-packages/issues/8702 for details.
2022-02-26 02:20:11 +09:00

12 lines
412 B
Diff

--- 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;