setup-ubuntu.sh: ant is no longer used
[termux-packages] / packages / nmap / ncat-bin-sh-path.patch
1 diff -u -r ../nmap-7.40/ncat/ncat_main.c ./ncat/ncat_main.c
2 --- ../nmap-7.40/ncat/ncat_main.c 2016-12-14 01:12:23.000000000 +0100
3 +++ ./ncat/ncat_main.c 2017-02-17 11:46:27.468844181 +0100
4 @@ -965,8 +965,8 @@
5
6 #ifndef WIN32
7 /* See if the shell is executable before we get deep into this */
8 - if (o.execmode == EXEC_SHELL && access("/bin/sh", X_OK) == -1)
9 - bye("/bin/sh is not executable, so `-c' won't work.");
10 + if (o.execmode == EXEC_SHELL && access("@TERMUX_PREFIX@/bin/sh", X_OK) == -1)
11 + bye("@TERMUX_PREFIX@/bin/sh is not executable, so `-c' won't work.");
12 #endif
13
14 if (targetss.storage.ss_family != AF_UNSPEC) {
15 diff -u -r ../nmap-7.40/ncat/ncat_posix.c ./ncat/ncat_posix.c
16 --- ../nmap-7.40/ncat/ncat_posix.c 2016-12-14 01:12:23.000000000 +0100
17 +++ ./ncat/ncat_posix.c 2017-02-17 11:47:09.716313620 +0100
18 @@ -239,7 +239,7 @@
19 char **cmdargs;
20
21 case EXEC_SHELL:
22 - execl("/bin/sh", "sh", "-c", cmdexec, (void *) NULL);
23 + execl("@TERMUX_PREFIX@/bin/sh", "sh", "-c", cmdexec, (void *) NULL);
24 break;
25 #ifdef HAVE_LUA
26 case EXEC_LUA: