You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
6 years ago
|
diff -u -r ../tor-0.3.5.7/src/app/main/main.c ./src/app/main/main.c
|
||
|
--- ../tor-0.3.5.7/src/app/main/main.c 2018-12-18 18:56:22.000000000 +0000
|
||
|
+++ ./src/app/main/main.c 2019-01-10 20:29:38.187975263 +0000
|
||
|
@@ -1044,7 +1044,7 @@
|
||
7 years ago
|
OPEN("/dev/srandom");
|
||
|
OPEN("/dev/urandom");
|
||
|
OPEN("/dev/random");
|
||
|
- OPEN("/etc/hosts");
|
||
7 years ago
|
+ OPEN("@TERMUX_PREFIX@/etc/hosts");
|
||
7 years ago
|
OPEN("/proc/meminfo");
|
||
|
|
||
|
if (options->BridgeAuthoritativeDir)
|
||
6 years ago
|
@@ -1057,7 +1057,7 @@
|
||
7 years ago
|
sandbox_cfg_allow_open_filename(&cfg,
|
||
|
tor_strdup(options->ServerDNSResolvConfFile));
|
||
|
else
|
||
|
- sandbox_cfg_allow_open_filename(&cfg, tor_strdup("/etc/resolv.conf"));
|
||
7 years ago
|
+ sandbox_cfg_allow_open_filename(&cfg, tor_strdup("@TERMUX_PREFIX@/etc/resolv.conf"));
|
||
7 years ago
|
|
||
|
for (i = 0; i < 2; ++i) {
|
||
|
if (get_torrc_fname(i)) {
|
||
6 years ago
|
@@ -1223,7 +1223,7 @@
|
||
7 years ago
|
OPEN_DATADIR_SUFFIX("hashed-fingerprint", ".tmp");
|
||
|
OPEN_DATADIR_SUFFIX("router-stability", ".tmp");
|
||
|
|
||
|
- OPEN("/etc/resolv.conf");
|
||
7 years ago
|
+ OPEN("@TERMUX_PREFIX@/etc/resolv.conf");
|
||
7 years ago
|
|
||
|
RENAME_SUFFIX("fingerprint", ".tmp");
|
||
6 years ago
|
RENAME_KEYDIR_SUFFIX("secret_onion_key_ntor", ".tmp");
|