packages/net/nfs-utils/patches/000-getrpcbynumber_r.patch
olli 2b95bef505 [Packages] net/nfs-utils: Update to 1.1.2
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10808 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-13 08:49:04 +00:00

18 lines
658 B
Diff

Index: nfs-utils-1.1.2/support/nfs/svc_socket.c
===================================================================
--- nfs-utils-1.1.2.orig/support/nfs/svc_socket.c 2008-04-13 10:38:24.000000000 +0200
+++ nfs-utils-1.1.2/support/nfs/svc_socket.c 2008-04-13 10:38:24.000000000 +0200
@@ -67,8 +67,10 @@
memset (&addr, 0, sizeof (addr));
addr.sin_family = AF_INET;
- ret = getrpcbynumber_r (number, &rpcbuf, rpcdata, sizeof rpcdata,
- &rpcp);
+// ret = getrpcbynumber_r (number, &rpcbuf, rpcdata, sizeof rpcdata,
+// &rpcp);
+ rpcp = getrpcbynumber (number);
+ ret = 0;
if (ret == 0 && rpcp != NULL)
{
/* First try name. */