busybox: Fix 'diff' when for pipes/stdin
This commit is contained in:
parent
0d46b4d25c
commit
14fc08f7a6
@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=http://www.busybox.net/
|
||||
TERMUX_PKG_DESCRIPTION="Tiny versions of many common UNIX utilities into a single small executable"
|
||||
TERMUX_PKG_ESSENTIAL=yes
|
||||
TERMUX_PKG_VERSION=1.24.1
|
||||
TERMUX_PKG_BUILD_REVISION=1
|
||||
TERMUX_PKG_BUILD_REVISION=2
|
||||
TERMUX_PKG_SRCURL=http://www.busybox.net/downloads/busybox-${TERMUX_PKG_VERSION}.tar.bz2
|
||||
TERMUX_PKG_BUILD_IN_SRC=yes
|
||||
|
||||
|
12
packages/busybox/editors-diff.c.patch
Normal file
12
packages/busybox/editors-diff.c.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -u -r ../busybox-1.24.1/editors/diff.c ./editors/diff.c
|
||||
--- ../busybox-1.24.1/editors/diff.c 2015-10-11 09:31:50.000000000 -0400
|
||||
+++ ./editors/diff.c 2016-02-08 05:23:45.890302334 -0500
|
||||
@@ -734,7 +734,7 @@
|
||||
* When we meet non-seekable file, we must make a temp copy.
|
||||
*/
|
||||
if (lseek(fd, 0, SEEK_SET) == -1 && errno == ESPIPE) {
|
||||
- char name[] = "/tmp/difXXXXXX";
|
||||
+ char name[] = "@TERMUX_PREFIX@/tmp/difXXXXXX";
|
||||
int fd_tmp = xmkstemp(name);
|
||||
|
||||
unlink(name);
|
Loading…
x
Reference in New Issue
Block a user