From c578853467a271756a069a508f2c0e1bc9a51287 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Wed, 20 May 1998 07:59:21 +0000 Subject: [PATCH] Don't change argp->flags after it's been copied. --- sys/nfs/nfs_vfsops.c | 4 ++-- sys/nfsclient/nfs_vfsops.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c index eb577d209ff9..e6c72106ba3a 100644 --- a/sys/nfs/nfs_vfsops.c +++ b/sys/nfs/nfs_vfsops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vfsops.c 8.12 (Berkeley) 5/20/95 - * $Id: nfs_vfsops.c,v 1.58 1998/05/06 05:29:38 msmith Exp $ + * $Id: nfs_vfsops.c,v 1.59 1998/05/19 07:11:25 peter Exp $ */ #include @@ -710,7 +710,7 @@ mountnfs(argp, mp, nam, pth, hst, vpp) * no sense in that context. */ if (argp->sotype == SOCK_STREAM) - argp->flags &= ~NFSMNT_NOCONN; + nmp->nm_flags &= ~NFSMNT_NOCONN; if ((argp->flags & NFSMNT_TIMEO) && argp->timeo > 0) { nmp->nm_timeo = (argp->timeo * NFS_HZ + 5) / 10; diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index eb577d209ff9..e6c72106ba3a 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/nfs_vfsops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vfsops.c 8.12 (Berkeley) 5/20/95 - * $Id: nfs_vfsops.c,v 1.58 1998/05/06 05:29:38 msmith Exp $ + * $Id: nfs_vfsops.c,v 1.59 1998/05/19 07:11:25 peter Exp $ */ #include @@ -710,7 +710,7 @@ mountnfs(argp, mp, nam, pth, hst, vpp) * no sense in that context. */ if (argp->sotype == SOCK_STREAM) - argp->flags &= ~NFSMNT_NOCONN; + nmp->nm_flags &= ~NFSMNT_NOCONN; if ((argp->flags & NFSMNT_TIMEO) && argp->timeo > 0) { nmp->nm_timeo = (argp->timeo * NFS_HZ + 5) / 10;