diff options
author | Joachim Nilsson <jocke@vmlinux.org> | 2010-01-14 22:06:48 (GMT) |
---|---|---|
committer | Joachim Nilsson <jocke@vmlinux.org> | 2010-01-14 22:06:48 (GMT) |
commit | 9bfbd1e3d84a1a43156aac24e37636781732ceb2 (patch) | |
tree | 5d9025de141aea7db2a9d563e07ea30fcd2e27b1 /patches/uClibc/0.9.30.2/100-fix-gethostent_r-failure-retval.patch | |
parent | 68058e12b87427288f69cb1d3f9791fc64a8fdff (diff) |
Port uClibc patches to 0.9.30.2
Some patches from 0.9.30.1 now applied upstream. The reminder have
been only slightly modified to apply cleanly to the new base.
Signed-off-by: Joachim Nilsson <jocke@vmlinux.org>
Diffstat (limited to 'patches/uClibc/0.9.30.2/100-fix-gethostent_r-failure-retval.patch')
-rw-r--r-- | patches/uClibc/0.9.30.2/100-fix-gethostent_r-failure-retval.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/patches/uClibc/0.9.30.2/100-fix-gethostent_r-failure-retval.patch b/patches/uClibc/0.9.30.2/100-fix-gethostent_r-failure-retval.patch new file mode 100644 index 0000000..34e18d2 --- /dev/null +++ b/patches/uClibc/0.9.30.2/100-fix-gethostent_r-failure-retval.patch @@ -0,0 +1,17 @@ +Original patch from Gentoo. + +-= BEGIN original header =- +-= END original header =- + +diff -durN uClibc-0.9.30.orig/libc/inet/resolv.c uClibc-0.9.30/libc/inet/resolv.c +--- uClibc-0.9.30.orig/libc/inet/resolv.c 2008-11-02 01:25:33.000000000 +0100 ++++ uClibc-0.9.30/libc/inet/resolv.c 2009-02-07 09:57:59.000000000 +0100 +@@ -1788,7 +1788,7 @@ + int gethostent_r(struct hostent *result_buf, char *buf, size_t buflen, + struct hostent **result, int *h_errnop) + { +- int ret; ++ int ret = HOST_NOT_FOUND; + + __UCLIBC_MUTEX_LOCK(mylock); + if (__gethostent_fp == NULL) { |