2019-06-12 04:09:22 +02:00
|
|
|
--- ./usr/include/paths.h.orig 2019-06-10 00:10:55.544212642 +0000
|
|
|
|
+++ ./usr/include/paths.h 2019-06-10 00:16:51.514412646 +0000
|
|
|
|
@@ -38,16 +38,14 @@
|
2017-06-18 20:57:16 +02:00
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
2017-11-15 16:48:35 +01:00
|
|
|
-#ifndef _PATH_BSHELL
|
2019-06-12 04:09:22 +02:00
|
|
|
/** Path to the default system shell. Historically the 'B' was to specify the Bourne shell. */
|
|
|
|
-#define _PATH_BSHELL "/system/bin/sh"
|
2017-11-15 16:48:35 +01:00
|
|
|
-#endif
|
2019-06-12 04:09:22 +02:00
|
|
|
+#define _PATH_BSHELL "@TERMUX_PREFIX@/bin/sh"
|
2017-06-18 20:57:16 +02:00
|
|
|
|
2019-06-12 04:09:22 +02:00
|
|
|
/** Path to the system console. */
|
|
|
|
#define _PATH_CONSOLE "/dev/console"
|
|
|
|
|
|
|
|
/** Default shell search path. */
|
|
|
|
-#define _PATH_DEFPATH "/sbin:/system/sbin:/product/bin:/apex/com.android.runtime/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin"
|
2020-07-08 23:56:42 +02:00
|
|
|
+#define _PATH_DEFPATH "@TERMUX_PREFIX@/bin"
|
2019-06-12 04:09:22 +02:00
|
|
|
|
|
|
|
/** Path to the directory containing device files. */
|
|
|
|
#define _PATH_DEV "/dev/"
|
|
|
|
@@ -63,3 +61,9 @@
|
|
|
|
|
|
|
|
/** Path to the calling process' tty. */
|
|
|
|
#define _PATH_TTY "/dev/tty"
|
|
|
|
+#define _PATH_STDPATH _PATH_DEFPATH
|
|
|
|
+#define _PATH_TMP "@TERMUX_PREFIX@/tmp/"
|
|
|
|
+#define _PATH_VARDB "@TERMUX_PREFIX@/var/db/"
|
|
|
|
+#define _PATH_VARRUN "@TERMUX_PREFIX@/var/run/"
|
|
|
|
+#define _PATH_VARTMP "@TERMUX_PREFIX@/var/tmp/"
|
2017-06-18 20:57:16 +02:00
|
|
|
+
|