Patch to encourage third-parties to compile own packages instead of using hosted by Termux. diff -uNr coreutils-8.32/src/coreutils.c coreutils-8.32.mod/src/coreutils.c --- coreutils-8.32/src/coreutils.c 2020-01-01 16:13:12.000000000 +0200 +++ coreutils-8.32.mod/src/coreutils.c 2020-09-27 23:37:17.025160590 +0300 @@ -26,6 +26,8 @@ # include #endif +#include + #include "system.h" #include "die.h" #include "error.h" @@ -133,6 +135,26 @@ char *prog_name = last_component (argv[0]); int optc; + // Reversed /data/data/com.termux/files/usr. Prevents patching with 'sed' + // by using equal-size prefixes. + const char termux_prefix_obfs[] = "rsu/selif/xumret.moc/atad/atad/"; + char termux_prefix[sizeof(termux_prefix_obfs)/sizeof(char)] = {0}; + int termux_prefix_len = sizeof(termux_prefix_obfs)/sizeof(char) - 1; + + // Decode. + for (int i=0; i