Fredrik Fornwall
5 years ago
3 changed files with 23 additions and 23 deletions
@ -1,12 +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 @@
|
|||
diff -u -r ../nano-4.6/src/files.c ./src/files.c
|
|||
--- ../nano-4.6/src/files.c 2019-11-29 10:12:07.000000000 +0000
|
|||
+++ ./src/files.c 2019-12-01 16:31:03.622452000 +0000
|
|||
@@ -1359,7 +1359,7 @@
|
|||
tempdir = check_writable_directory(P_tmpdir); |
|||
|
|||
/* if P_tmpdir is NULL, use /tmp. */ |
|||
if (full_tempdir == NULL) |
|||
- full_tempdir = mallocstrcpy(NULL, "/tmp/");
|
|||
+ full_tempdir = mallocstrcpy(NULL, "@TERMUX_PREFIX@/tmp/");
|
|||
if (tempdir == NULL) |
|||
- tempdir = copy_of("/tmp/");
|
|||
+ tempdir = copy_of("@TERMUX_PREFIX@/tmp/");
|
|||
|
|||
full_tempdir = charealloc(full_tempdir, strlen(full_tempdir) + 12); |
|||
strcat(full_tempdir, "nano.XXXXXX"); |
|||
tempfile_name = charealloc(tempdir, strlen(tempdir) + 12); |
|||
strcat(tempfile_name, "nano.XXXXXX"); |
|||
|
@ -1,12 +1,12 @@ |
|||
diff -u -r ../nano-4.3/src/text.c ./src/text.c
|
|||
--- ../nano-4.3/src/text.c 2019-06-11 11:55:31.000000000 +0000
|
|||
+++ ./src/text.c 2019-06-23 21:36:28.191047000 +0000
|
|||
@@ -956,7 +956,7 @@
|
|||
/* Check which shell to use. If none is specified, use /bin/sh. */ |
|||
shellenv = getenv("SHELL"); |
|||
if (shellenv == NULL) |
|||
- shellenv = (char *)"/bin/sh";
|
|||
+ shellenv = (char *)"@TERMUX_PREFIX@/bin/sh";
|
|||
diff -u -r ../nano-4.6/src/text.c ./src/text.c
|
|||
--- ../nano-4.6/src/text.c 2019-11-29 10:12:07.000000000 +0000
|
|||
+++ ./src/text.c 2019-12-01 16:32:08.956643000 +0000
|
|||
@@ -962,7 +962,7 @@
|
|||
const char *theshell = getenv("SHELL"); |
|||
|
|||
/* Fork a child process to run the command in. */ |
|||
if ((pid_of_command = fork()) == 0) { |
|||
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]); |
|||
|
Loading…
Reference in new issue