aboutsummaryrefslogtreecommitdiffstats
path: root/main/nfs-utils/0011-exportfs-only-do-glibc-specific-hackery-on-glibc.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-08-06 09:52:50 +0300
committerTimo Teräs <timo.teras@iki.fi>2014-08-06 09:54:46 +0300
commit87c34001006b65b2be65cb87168b498c915390e1 (patch)
treebba7637346cb2a8a230234fc1c04b481f88e372a /main/nfs-utils/0011-exportfs-only-do-glibc-specific-hackery-on-glibc.patch
parent910ce2ae3ff7e550d4f532c7d74d3e96526bc368 (diff)
downloadaports-87c34001006b65b2be65cb87168b498c915390e1.tar.bz2
aports-87c34001006b65b2be65cb87168b498c915390e1.tar.xz
main/nfs-utils: upgrade to 1.3.1-rc3 and refresh musl patches
use patch series sent to linux-nfs mailing list, and add one more patch to address accessing /proc/net/rpc.
Diffstat (limited to 'main/nfs-utils/0011-exportfs-only-do-glibc-specific-hackery-on-glibc.patch')
-rw-r--r--main/nfs-utils/0011-exportfs-only-do-glibc-specific-hackery-on-glibc.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/nfs-utils/0011-exportfs-only-do-glibc-specific-hackery-on-glibc.patch b/main/nfs-utils/0011-exportfs-only-do-glibc-specific-hackery-on-glibc.patch
new file mode 100644
index 0000000000..607afca289
--- /dev/null
+++ b/main/nfs-utils/0011-exportfs-only-do-glibc-specific-hackery-on-glibc.patch
@@ -0,0 +1,39 @@
+From 0b4df13026eb371b68abc4b8cec4ca8d90c3b0a3 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Mon, 2 Jun 2014 14:42:10 +0200
+Subject: [PATCH] exportfs: only do glibc specific hackery on glibc
+
+We should not depend on the libc do free(3) on ai_canonname as that is
+completely up to implementation and known o break things on uclibc and
+musl libc.
+
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+---
+ support/export/hostname.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/support/export/hostname.c b/support/export/hostname.c
+index d9153e1..30584b4 100644
+--- a/support/export/hostname.c
++++ b/support/export/hostname.c
+@@ -382,6 +382,7 @@ host_numeric_addrinfo(const struct sockaddr *sap)
+
+ ai = host_pton(buf);
+
++#if !definded(__UCLIBC__) && defined(__GLIBC__)
+ /*
+ * getaddrinfo(AI_NUMERICHOST) never fills in ai_canonname
+ */
+@@ -392,7 +393,9 @@ host_numeric_addrinfo(const struct sockaddr *sap)
+ ai = NULL;
+ }
+ }
++#endif
+
+ return ai;
+ }
++
+ #endif /* !HAVE_GETNAMEINFO */
+--
+2.0.4
+