summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nfsclient/nfs_vfsops.c')
-rw-r--r--sys/nfsclient/nfs_vfsops.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c
index e839d8b..b22a855 100644
--- a/sys/nfsclient/nfs_vfsops.c
+++ b/sys/nfsclient/nfs_vfsops.c
@@ -764,7 +764,7 @@ nfs_mount(mp, path, data, ndp, p)
struct nfs_args args;
struct sockaddr *nam;
struct vnode *vp;
- char pth[MNAMELEN], hst[MNAMELEN];
+ char hst[MNAMELEN];
size_t len;
u_char nfh[NFSX_V3FHMAX];
@@ -810,10 +810,6 @@ nfs_mount(mp, path, data, ndp, p)
error = copyin((caddr_t)args.fh, (caddr_t)nfh, args.fhsize);
if (error)
return (error);
- error = copyinstr(path, pth, MNAMELEN-1, &len);
- if (error)
- return (error);
- bzero(&pth[len], MNAMELEN - len);
error = copyinstr(args.hostname, hst, MNAMELEN-1, &len);
if (error)
return (error);
@@ -823,7 +819,7 @@ nfs_mount(mp, path, data, ndp, p)
if (error)
return (error);
args.fh = nfh;
- error = mountnfs(&args, mp, nam, pth, hst, &vp);
+ error = mountnfs(&args, mp, nam, path, hst, &vp);
return (error);
}
OpenPOWER on IntegriCloud