Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | Upstream-Status: Pending [from other distro Debian] |
| 2 | |
| 3 | Index: iputils-s20121221/tracepath.c |
| 4 | =================================================================== |
| 5 | --- iputils-s20121221.orig/tracepath.c |
| 6 | +++ iputils-s20121221/tracepath.c |
| 7 | @@ -370,9 +370,9 @@ main(int argc, char **argv) |
| 8 | } |
| 9 | #endif |
| 10 | |
| 11 | - he = gethostbyname(p); |
| 12 | + he = gethostbyname2(argv[0], AF_INET); |
| 13 | if (he == NULL) { |
| 14 | - herror("gethostbyname"); |
| 15 | + herror("gethostbyname2"); |
| 16 | exit(1); |
| 17 | } |
| 18 | |
| 19 | Index: iputils-s20121221/ping.c |
| 20 | =================================================================== |
| 21 | --- iputils-s20121221.orig/ping.c |
| 22 | +++ iputils-s20121221/ping.c |
| 23 | @@ -279,7 +279,7 @@ main(int argc, char **argv) |
| 24 | #else |
| 25 | idn = target; |
| 26 | #endif |
| 27 | - hp = gethostbyname(idn); |
| 28 | + hp = gethostbyname2(idn, AF_INET); |
| 29 | if (!hp) { |
| 30 | fprintf(stderr, "ping: unknown host %s\n", target); |
| 31 | exit(2); |