diff options
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/bootp_subr.c | 2 | ||||
-rw-r--r-- | sys/nfsclient/nfs_vfsops.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/nfsclient/bootp_subr.c b/sys/nfsclient/bootp_subr.c index 1d7a308..10fc8c4 100644 --- a/sys/nfsclient/bootp_subr.c +++ b/sys/nfsclient/bootp_subr.c @@ -1563,7 +1563,7 @@ bootpc_decode_reply(struct nfsv3_diskless *nd, struct bootpc_ifcontext *ifctx, } else { strcpy(nd->my_hostnam, p); mtx_lock(&prison0.pr_mtx); - strcpy(prison0.pr_host, p); + strcpy(prison0.pr_hostname, p); mtx_unlock(&prison0.pr_mtx); printf("hostname %s ", p); gctx->sethostname = ifctx; diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index 5bc5cfd..6a28eab 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/nfs_vfsops.c @@ -524,7 +524,8 @@ nfs_mountroot(struct mount *mp) * mount the right /var based upon its preset value. */ mtx_lock(&prison0.pr_mtx); - strlcpy(prison0.pr_host, nd->my_hostnam, sizeof (prison0.pr_host)); + strlcpy(prison0.pr_hostname, nd->my_hostnam, + sizeof (prison0.pr_hostname)); mtx_unlock(&prison0.pr_mtx); inittodr(ntohl(nd->root_time)); return (0); |