Blame libbind-9.3.1rc1-fix_h_errno.patch
|
jvdias |
bbcf3c |
--- bind-9.3.1rc1/lib/bind/irs/irs_data.c.fix_h_errno 2004-11-29 20:15:43.000000000 -0500
|
|
jvdias |
bbcf3c |
+++ bind-9.3.1rc1/lib/bind/irs/irs_data.c 2005-03-09 21:05:52.000000000 -0500
|
|
jvdias |
bbcf3c |
@@ -222,12 +222,7 @@
|
|
jvdias |
bbcf3c |
void
|
|
jvdias |
bbcf3c |
__h_errno_set(struct __res_state *res, int err) {
|
|
jvdias |
bbcf3c |
|
|
jvdias |
bbcf3c |
-
|
|
jvdias |
bbcf3c |
-#if (__GLIBC__ > 2 || __GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)
|
|
jvdias |
bbcf3c |
- res->res_h_errno = err;
|
|
jvdias |
bbcf3c |
-#else
|
|
jvdias |
bbcf3c |
h_errno = res->res_h_errno = err;
|
|
jvdias |
bbcf3c |
-#endif
|
|
jvdias |
bbcf3c |
}
|
|
jvdias |
bbcf3c |
|
|
jvdias |
bbcf3c |
#endif /*__BIND_NOSTATIC*/
|
|
jvdias |
bbcf3c |
--- bind-9.3.1rc1/lib/bind/resolv/res_query.c.fix_h_errno 2004-03-16 07:34:19.000000000 -0500
|
|
jvdias |
bbcf3c |
+++ bind-9.3.1rc1/lib/bind/resolv/res_query.c 2005-03-09 21:53:34.000000000 -0500
|
|
jvdias |
bbcf3c |
@@ -192,6 +192,8 @@
|
|
jvdias |
bbcf3c |
}
|
|
jvdias |
bbcf3c |
return (-1);
|
|
jvdias |
bbcf3c |
}
|
|
jvdias |
bbcf3c |
+ if( n > 0 )
|
|
jvdias |
bbcf3c |
+ RES_SET_H_ERRNO(statp,0);
|
|
jvdias |
bbcf3c |
return (n);
|
|
jvdias |
bbcf3c |
}
|
|
jvdias |
bbcf3c |
|