File: 07_util.c_gethostbyname.patch

package info (click to toggle)
linuxtrade 3.65-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,880 kB
  • ctags: 1,969
  • sloc: ansic: 30,091; sh: 2,278; perl: 566; makefile: 126
file content (20 lines) | stat: -rw-r--r-- 523 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- util.c.orig	2003-07-21 23:02:18.000000000 -0500
+++ util.c	2003-07-24 23:04:15.000000000 -0500
@@ -125,6 +125,9 @@
 struct hostent *
 mygethostbyname(const char *name)
 {
+/* Debian does not have a problem here, but we do trigger a display bug from the
+   host invocation below.  Just fall back to get hostbyname -- edd 24 Jul 2003 */
+#if 0
 	static long	ipaddr;
 	char		buf[512];
 	FILE		*fp;
@@ -179,6 +182,7 @@
 	/*
 	 * Last resort, use the system gethostbyname()
 	 */
+#endif
 	return gethostbyname(name);
 }