2017-09-12 11:36:36 +02:00
|
|
|
diff -uNr radare2-1.6.0/libr/include/r_magic.h radare2-1.6.0.mod/libr/include/r_magic.h
|
|
|
|
--- radare2-1.6.0/libr/include/r_magic.h 2017-07-11 18:54:22.000000000 +0300
|
|
|
|
+++ radare2-1.6.0.mod/libr/include/r_magic.h 2017-09-12 12:34:00.112989113 +0300
|
|
|
|
@@ -12,7 +12,7 @@
|
|
|
|
R_LIB_VERSION_HEADER(r_magic);
|
|
|
|
|
|
|
|
#ifndef MAGICFILE
|
|
|
|
-#define MAGICFILE "/etc/magic"
|
|
|
|
+#define MAGICFILE "@TERMUX_PREFIX@/etc/magic"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define R_MAGIC_PATH R2_PREFIX "/share/radare2/" R2_VERSION "/magic"
|
|
|
|
diff -uNr radare2-1.6.0/libr/util/file.c radare2-1.6.0.mod/libr/util/file.c
|
|
|
|
--- radare2-1.6.0/libr/util/file.c 2017-07-11 18:54:22.000000000 +0300
|
|
|
|
+++ radare2-1.6.0.mod/libr/util/file.c 2017-09-12 12:34:06.732989109 +0300
|
|
|
|
@@ -874,7 +874,7 @@
|
|
|
|
path = strdup (tmpdir);
|
2016-11-11 01:39:33 +01:00
|
|
|
}
|
2016-09-16 14:27:39 +02:00
|
|
|
#elif __ANDROID__
|
2016-11-11 01:39:33 +01:00
|
|
|
- char *path = strdup ("/data/data/org.radare.radare2installer/radare2/tmp");
|
2016-09-16 14:27:39 +02:00
|
|
|
+ char *path = strdup ("@TERMUX_PREFIX@/tmp");
|
|
|
|
#else
|
|
|
|
char *path = r_sys_getenv ("TMPDIR");
|
|
|
|
if (path && !*path) {
|