You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
895 B

diff -uNr nano-4.6/src/files.c nano-4.6.mod/src/files.c
--- nano-4.6/src/files.c 2019-11-29 12:12:07.000000000 +0200
+++ nano-4.6.mod/src/files.c 2019-12-02 03:07:18.821336573 +0200
@@ -1359,7 +1359,7 @@
tempdir = check_writable_directory(P_tmpdir);
if (tempdir == NULL)
- tempdir = copy_of("/tmp/");
+ tempdir = copy_of("@TERMUX_PREFIX@/tmp/");
tempfile_name = charealloc(tempdir, strlen(tempdir) + 12);
strcat(tempfile_name, "nano.XXXXXX");
diff -uNr nano-4.6/src/text.c nano-4.6.mod/src/text.c
--- nano-4.6/src/text.c 2019-11-29 12:12:07.000000000 +0200
+++ nano-4.6.mod/src/text.c 2019-12-02 03:07:48.974809217 +0200
@@ -962,7 +962,7 @@
const char *theshell = getenv("SHELL");
if (theshell == NULL)
- theshell = (char *)"/bin/sh";
+ theshell = (char *)"@TERMUX_PREFIX@/bin/sh";
/* Child: close the unused read end of the output pipe. */
close(from_fd[0]);