patch-2.1.123 linux/net/sunrpc/clnt.c
Next file: linux/net/sunrpc/xprt.c
Previous file: linux/net/sunrpc/auth_unix.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Sat Sep 26 10:37:31 1998
- Orig file:
v2.1.122/linux/net/sunrpc/clnt.c
- Orig date:
Wed Sep 9 14:51:13 1998
diff -u --recursive --new-file v2.1.122/linux/net/sunrpc/clnt.c linux/net/sunrpc/clnt.c
@@ -28,6 +28,7 @@
#include <linux/mm.h>
#include <linux/malloc.h>
#include <linux/in.h>
+#include <linux/utsname.h>
#include <linux/sunrpc/clnt.h>
@@ -101,6 +102,12 @@
if (!rpcauth_create(flavor, clnt))
goto out_no_auth;
+
+ /* save the nodename */
+ clnt->cl_nodelen = strlen(system_utsname.nodename);
+ if (clnt->cl_nodelen > UNX_MAXNODENAME)
+ clnt->cl_nodelen = UNX_MAXNODENAME;
+ memcpy(clnt->cl_nodename, system_utsname.nodename, clnt->cl_nodelen);
out:
return clnt;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov