diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-18 09:30:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-18 09:30:49 +0000 |
commit | e04268a1927aa972dddcf20dd1f6b6f022ea03b5 (patch) | |
tree | f2f299ab53b8f0bac62489670546eb3a273305cd /sys | |
parent | 837023773b3c19984f50bf6d66f994a4a63ac77d (diff) |
new socket required if changing NOCONN; fvdl
Diffstat (limited to 'sys')
-rw-r--r-- | sys/nfs/nfs_vfsops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c index 8d78d586c72..2a2820b9270 100644 --- a/sys/nfs/nfs_vfsops.c +++ b/sys/nfs/nfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vfsops.c,v 1.17 1997/04/18 09:28:03 deraadt Exp $ */ +/* $OpenBSD: nfs_vfsops.c,v 1.18 1997/04/18 09:30:48 deraadt Exp $ */ /* $NetBSD: nfs_vfsops.c,v 1.46.4.1 1996/05/25 22:40:35 fvdl Exp $ */ /* @@ -466,6 +466,9 @@ nfs_decode_args(nmp, argp) adjsock = !(nmp->nm_flag & NFSMNT_RESVPORT) && (argp->flags & NFSMNT_RESVPORT); #endif + /* Also re-bind if we're switching to/from a connected UDP socket */ + adjsock |= ((nmp->nm_flag & NFSMNT_NOCONN) != + (argp->flags & NFSMNT_NOCONN)); /* Update flags atomically. Don't change the lock bits. */ nmp->nm_flag = |