aboutsummaryrefslogtreecommitdiffstats
path: root/main/nfs-utils/musl-getservbyport.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-04-24 16:50:13 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2014-04-24 16:50:56 +0200
commit1f88db545614009df2a8ed30c35774997e30f228 (patch)
tree05c21b22717f31c9b3796fa12b1ff854b097108d /main/nfs-utils/musl-getservbyport.patch
parent8f468db270c464bbf34932d89bb974e36bde8923 (diff)
downloadaports-1f88db545614009df2a8ed30c35774997e30f228.tar.bz2
aports-1f88db545614009df2a8ed30c35774997e30f228.tar.xz
main/nfs-utils: fix statd and remove glibc specific workaround
Diffstat (limited to 'main/nfs-utils/musl-getservbyport.patch')
-rw-r--r--main/nfs-utils/musl-getservbyport.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/nfs-utils/musl-getservbyport.patch b/main/nfs-utils/musl-getservbyport.patch
new file mode 100644
index 0000000000..c9d02e4f9a
--- /dev/null
+++ b/main/nfs-utils/musl-getservbyport.patch
@@ -0,0 +1,18 @@
+Musl will always return something with getservbyport so we cannot skip
+ports that returns non-null.
+
+diff --git a/utils/statd/rmtcall.c b/utils/statd/rmtcall.c
+index fd576d9..d72a0bf 100644
+--- a/utils/statd/rmtcall.c
++++ b/utils/statd/rmtcall.c
+@@ -90,8 +90,10 @@ statd_get_socket(void)
+ __func__);
+ break;
+ }
++#if 0
+ se = getservbyport(sin.sin_port, "udp");
+ if (se == NULL)
++#endif
+ break;
+ /* rather not use that port, try again */
+