nano: fix path to /tmp

This commit is contained in:
Leonid Pliushch 2019-03-02 14:52:48 +02:00
parent 85cf56dcf3
commit 4f66b934e9
2 changed files with 13 additions and 1 deletions

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.nano-editor.org/
TERMUX_PKG_DESCRIPTION="Small, free and friendly text editor"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=3.2
TERMUX_PKG_REVISION=2
TERMUX_PKG_REVISION=3
TERMUX_PKG_SHA256=d12773af3589994b2e4982c5792b07c6240da5b86c5aef2103ab13b401fe6349
TERMUX_PKG_SRCURL=https://nano-editor.org/dist/latest/nano-$TERMUX_PKG_VERSION.tar.xz
TERMUX_PKG_DEPENDS="libandroid-support, libandroid-glob, ncurses"

View File

@ -0,0 +1,12 @@
diff -uNr nano-3.2/src/files.c nano-3.2.mod/src/files.c
--- nano-3.2/src/files.c 2018-11-05 21:04:46.000000000 +0200
+++ nano-3.2.mod/src/files.c 2019-03-01 22:09:30.233108029 +0200
@@ -1439,7 +1439,7 @@
/* if P_tmpdir is NULL, use /tmp. */
if (full_tempdir == NULL)
- full_tempdir = mallocstrcpy(NULL, "/tmp/");
+ full_tempdir = mallocstrcpy(NULL, "@TERMUX_PREFIX@/tmp/");
full_tempdir = charealloc(full_tempdir, strlen(full_tempdir) + 12);
strcat(full_tempdir, "nano.XXXXXX");