patch-2.4.19 linux-2.4.19/fs/nfs/mount_clnt.c

Next file: linux-2.4.19/fs/nfs/nfs3proc.c
Previous file: linux-2.4.19/fs/nfs/inode.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/fs/nfs/mount_clnt.c linux-2.4.19/fs/nfs/mount_clnt.c
@@ -13,7 +13,6 @@
 #include <linux/uio.h>
 #include <linux/net.h>
 #include <linux/in.h>
-#include <linux/inet.h>
 #include <linux/sunrpc/clnt.h>
 #include <linux/sunrpc/xprt.h>
 #include <linux/sunrpc/sched.h>
@@ -67,7 +66,7 @@
 	dprintk("NFS:      nfs_mount(%08x:%s)\n",
 			(unsigned)ntohl(addr->sin_addr.s_addr), path);
 
-	strcpy(hostname, in_ntoa(addr->sin_addr.s_addr));
+	sprintf(hostname, "%u.%u.%u.%u", NIPQUAD(addr->sin_addr.s_addr));
 	if (!(mnt_clnt = mnt_create(hostname, addr, version)))
 		return -EACCES;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)