Fredrik Fornwall
8 years ago
2 changed files with 27 additions and 0 deletions
@ -0,0 +1,26 @@ |
|||
diff -u -r ../nmap-7.40/ncat/ncat_main.c ./ncat/ncat_main.c
|
|||
--- ../nmap-7.40/ncat/ncat_main.c 2016-12-14 01:12:23.000000000 +0100
|
|||
+++ ./ncat/ncat_main.c 2017-02-17 11:46:27.468844181 +0100
|
|||
@@ -965,8 +965,8 @@
|
|||
|
|||
#ifndef WIN32 |
|||
/* See if the shell is executable before we get deep into this */ |
|||
- if (o.execmode == EXEC_SHELL && access("/bin/sh", X_OK) == -1)
|
|||
- bye("/bin/sh is not executable, so `-c' won't work.");
|
|||
+ if (o.execmode == EXEC_SHELL && access("@TERMUX_PREFIX@/bin/sh", X_OK) == -1)
|
|||
+ bye("@TERMUX_PREFIX@/bin/sh is not executable, so `-c' won't work.");
|
|||
#endif |
|||
|
|||
if (targetss.storage.ss_family != AF_UNSPEC) { |
|||
diff -u -r ../nmap-7.40/ncat/ncat_posix.c ./ncat/ncat_posix.c
|
|||
--- ../nmap-7.40/ncat/ncat_posix.c 2016-12-14 01:12:23.000000000 +0100
|
|||
+++ ./ncat/ncat_posix.c 2017-02-17 11:47:09.716313620 +0100
|
|||
@@ -239,7 +239,7 @@
|
|||
char **cmdargs; |
|||
|
|||
case EXEC_SHELL: |
|||
- execl("/bin/sh", "sh", "-c", cmdexec, (void *) NULL);
|
|||
+ execl("@TERMUX_PREFIX@/bin/sh", "sh", "-c", cmdexec, (void *) NULL);
|
|||
break; |
|||
#ifdef HAVE_LUA |
|||
case EXEC_LUA: |
Loading…
Reference in new issue