packages/net/nfs-kernel-server/patches/001-nfs_utils_1.0.6_uclibc.patch
florian 36ce649eb1 [package] update nfs-kernel-server to 1.1.5 (#4882)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@15136 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-07 14:14:25 +00:00

40 lines
1.3 KiB
Diff

diff -urN nfs-utils-1.1.5/support/nfs/svc_socket.c nfs-utils-1.1.5.new/support/nfs/svc_socket.c
--- nfs-utils-1.1.5/support/nfs/svc_socket.c 2009-03-05 12:42:56.000000000 +0100
+++ nfs-utils-1.1.5.new/support/nfs/svc_socket.c 2009-04-07 16:04:54.000000000 +0200
@@ -66,7 +66,7 @@
memset (&addr, 0, sizeof (addr));
addr.sin_family = AF_INET;
-
+#ifndef __UCLIBC__ /* neither getrpcbynumber() nor getrpcbynumber_r() is SuSv3 */
ret = getrpcbynumber_r (number, &rpcbuf, rpcdata, sizeof rpcdata,
&rpcp);
if (ret == 0 && rpcp != NULL)
@@ -100,6 +100,7 @@
}
}
else
+#endif /* __UCLIBC__ */
{
addr.sin_port = 0;
if (bind (sock, (struct sockaddr *) &addr, len) < 0)
diff -urN nfs-utils-1.1.5/utils/mountd/cache.c nfs-utils-1.1.5.new/utils/mountd/cache.c
--- nfs-utils-1.1.5/utils/mountd/cache.c 2009-03-05 12:42:56.000000000 +0100
+++ nfs-utils-1.1.5.new/utils/mountd/cache.c 2009-04-07 16:11:09.000000000 +0200
@@ -142,6 +142,7 @@
pw = getpwuid(uid);
if (!pw)
rv = -1;
+#ifndef __UCLIBC__
else {
rv = getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups);
if (rv == -1 && ngroups >= 100) {
@@ -153,6 +154,7 @@
groups, &ngroups);
}
}
+#endif /* __UCLIBC__ */
qword_printint(f, uid);
qword_printint(f, time(0)+30*60);
if (rv >= 0) {