Files
packages/net/nfs-kernel-server/patches/200-uclibc-fix.patch
W. Michael Petullo df9eb01b4d nfs-kernel-server: fix segfault on x86_64/uClibc
Signed-off-by: W. Michael Petullo <mike@flyn.org>
[refresh patch]
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2016-07-02 23:25:00 +00:00

21 lines
465 B
Diff

--- a/support/export/hostname.c
+++ b/support/export/hostname.c
@@ -350,7 +350,9 @@ host_numeric_addrinfo(const struct socka
/*
* getaddrinfo(AI_NUMERICHOST) never fills in ai_canonname
+ * ...well, it does on uclibc.
*/
+#ifndef __UCLIBC__
if (ai != NULL) {
free(ai->ai_canonname); /* just in case */
ai->ai_canonname = strdup(buf);
@@ -359,6 +361,7 @@ host_numeric_addrinfo(const struct socka
ai = NULL;
}
}
+#endif
return ai;
}