From 424364633e837ee8dc14907f91734211526ab6fa Mon Sep 17 00:00:00 2001 From: dfr Date: Thu, 24 Jul 2008 14:02:03 +0000 Subject: Try again not to use a userspace pointer in the kernel when trying to record the hostname which we need for NLM requests. The previous patch was incomplete. PR: 125849 Pointy hat: dfr --- sys/nfsclient/nfs_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index eb64d3c..d068ab3 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/nfs_vfsops.c @@ -708,7 +708,7 @@ nfs_decode_args(struct mount *mp, struct nfsmount *nmp, struct nfs_args *argp, } if (hostname) { - strlcpy(nmp->nm_hostname, argp->hostname, + strlcpy(nmp->nm_hostname, hostname, sizeof(nmp->nm_hostname)); p = strchr(nmp->nm_hostname, ':'); if (p) -- cgit v1.1