chiark / gitweb /
torsocks: add patch for ipv4 and enable package (#650)
authorVishal Biswas <vshlbiswas@ymail.com>
Tue, 3 Jan 2017 13:44:59 +0000 (19:14 +0530)
committerFredrik Fornwall <fredrik@fornwall.net>
Tue, 3 Jan 2017 13:44:59 +0000 (14:44 +0100)
packages/torsocks/build.sh [moved from disabled-packages/torsocks/build.sh with 100% similarity]
packages/torsocks/configure.ac.patch [moved from disabled-packages/torsocks/configure.ac.patch with 100% similarity]
packages/torsocks/src-common-config-file.h.patch [moved from disabled-packages/torsocks/src-common-config-file.h.patch with 100% similarity]
packages/torsocks/src-lib-gethostbyname.c.patch [new file with mode: 0644]
packages/torsocks/src-lib-torsocks.h.patch [moved from disabled-packages/torsocks/src-lib-torsocks.h.patch with 100% similarity]
packages/torsocks/tests-Makefile.am.patch [moved from disabled-packages/torsocks/tests-Makefile.am.patch with 100% similarity]

diff --git a/packages/torsocks/src-lib-gethostbyname.c.patch b/packages/torsocks/src-lib-gethostbyname.c.patch
new file mode 100644 (file)
index 0000000..9c3c451
--- /dev/null
@@ -0,0 +1,11 @@
+--- ./src/lib/gethostbyname.c  2016-10-18 22:14:01.000000000 +0530
++++ ../gethostbyname.c 2016-12-22 10:14:38.497288603 +0530
+@@ -74,7 +74,7 @@
+       /* Man page specifies that it can either be an hostname or IPv4 address.
+        * If it's an address, go with it else try to resolve it through Tor. */
+-      if (utils_is_address_ipv4(name)) {
++      if (utils_is_address_ipv4(name) == 1) {
+               if (inet_pton(AF_INET, name, &ip) <= 0) {
+                       goto error;
+               }