From: W. Michael Petullo Date: Sun, 12 Jun 2016 19:10:21 +0000 (-0400) Subject: nfs-kernel-server: fix segfault on x86_64/uClibc X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=df9eb01b4d6647c311cb6a272a36508840335f78;p=feed%2Fpackages.git nfs-kernel-server: fix segfault on x86_64/uClibc Signed-off-by: W. Michael Petullo [refresh patch] Signed-off-by: Etienne CHAMPETIER --- diff --git a/net/nfs-kernel-server/Makefile b/net/nfs-kernel-server/Makefile index fb67bb4eaa..7e6b403ff4 100644 --- a/net/nfs-kernel-server/Makefile +++ b/net/nfs-kernel-server/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=nfs-kernel-server PKG_VERSION:=1.3.2 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_MD5SUM:=1e2f3c1ed468dee02d00c534c002ea10 PKG_SOURCE_URL:=@SF/nfs diff --git a/net/nfs-kernel-server/patches/200-uclibc-fix.patch b/net/nfs-kernel-server/patches/200-uclibc-fix.patch new file mode 100644 index 0000000000..db6b083224 --- /dev/null +++ b/net/nfs-kernel-server/patches/200-uclibc-fix.patch @@ -0,0 +1,20 @@ +--- 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; + }