generic-poky/meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff
Radu Moisan 5f863410d7 iputils: Upgrade to v20121221
Removed obsolete patches
Header for arping changed. New author added.
Capability support enabled by default(upstream) -> added libcap to DEPENDS
Gnutls enabled by default(upstream) -> switched from openssl to gnutls

(From OE-Core rev: 52ca4ac9f3af16fe99b28eaeaff8bb52f86eb24c)

Signed-off-by: Radu Moisan <radu.moisan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-07-13 18:23:32 +01:00

32 lines
852 B
Diff

Upstream-Status: Pending [from other distro Debian]
Index: iputils-s20121221/tracepath.c
===================================================================
--- iputils-s20121221.orig/tracepath.c
+++ iputils-s20121221/tracepath.c
@@ -370,9 +370,9 @@ main(int argc, char **argv)
}
#endif
- he = gethostbyname(p);
+ he = gethostbyname2(argv[0], AF_INET);
if (he == NULL) {
- herror("gethostbyname");
+ herror("gethostbyname2");
exit(1);
}
Index: iputils-s20121221/ping.c
===================================================================
--- iputils-s20121221.orig/ping.c
+++ iputils-s20121221/ping.c
@@ -279,7 +279,7 @@ main(int argc, char **argv)
#else
idn = target;
#endif
- hp = gethostbyname(idn);
+ hp = gethostbyname2(idn, AF_INET);
if (!hp) {
fprintf(stderr, "ping: unknown host %s\n", target);
exit(2);