svn commit: trunk/busybox/libbb

vapier at busybox.net vapier at busybox.net
Fri May 26 01:56:44 UTC 2006


Author: vapier
Date: 2006-05-25 18:56:42 -0700 (Thu, 25 May 2006)
New Revision: 15178

Log:
errno and h_errno values are not the same #876 by rfelker

Modified:
   trunk/busybox/libbb/inet_common.c


Changeset:
Modified: trunk/busybox/libbb/inet_common.c
===================================================================
--- trunk/busybox/libbb/inet_common.c	2006-05-26 01:48:17 UTC (rev 15177)
+++ trunk/busybox/libbb/inet_common.c	2006-05-26 01:56:42 UTC (rev 15178)
@@ -62,7 +62,6 @@
 	}
 	if (hostfirst) {
 		/* Don't try again */
-		errno = h_errno;
 		return -1;
 	}
 #ifdef DEBUG
@@ -74,7 +73,6 @@
 	bb_error_msg("gethostbyname (%s)", name);
 #endif
 	if ((hp = gethostbyname(name)) == (struct hostent *) NULL) {
-		errno = h_errno;
 		return -1;
 	}
 	memcpy((char *) &s_in->sin_addr, (char *) hp->h_addr_list[0],




More information about the busybox-cvs mailing list