termux-packages/root-packages/iodine/002-fix-ifconfig-path.patch

13 lines
399 B
Diff
Raw Normal View History

2020-02-18 14:48:43 +01:00
diff -uNr iodine-0.7.0/src/tun.c iodine-0.7.0.mod/src/tun.c
--- iodine-0.7.0/src/tun.c 2014-06-16 23:28:43.000000000 +0300
+++ iodine-0.7.0.mod/src/tun.c 2019-01-20 16:44:23.331442272 +0200
@@ -26,7 +26,7 @@
#include <fcntl.h>
#ifndef IFCONFIGPATH
-#define IFCONFIGPATH "PATH=/sbin:/bin "
+#define IFCONFIGPATH "PATH=@TERMUX_PREFIX@/bin:@TERMUX_PREFIX@/bin/applets "
#endif
#ifdef WINDOWS32