summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-05-14 22:41:32 +0000
committerderaadt <deraadt@openbsd.org>1996-05-14 22:41:32 +0000
commitf4ed62cebc2be6b08253d92ceb9626f54121f053 (patch)
tree10995f98578959caf8934343d46e5115d548e9cf
parentnon-root bind() to 2049 gets EADDRINUSE (diff)
downloadwireguard-openbsd-f4ed62cebc2be6b08253d92ceb9626f54121f053.tar.xz
wireguard-openbsd-f4ed62cebc2be6b08253d92ceb9626f54121f053.zip
NFSMNT_RESVPORT set in wrong place
-rw-r--r--sys/nfs/nfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c
index 2a70e192865..e88285592e5 100644
--- a/sys/nfs/nfs_vfsops.c
+++ b/sys/nfs/nfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_vfsops.c,v 1.8 1996/04/21 22:30:34 deraadt Exp $ */
+/* $OpenBSD: nfs_vfsops.c,v 1.9 1996/05/14 22:41:32 deraadt Exp $ */
/* $NetBSD: nfs_vfsops.c,v 1.46 1996/03/24 23:58:10 fvdl Exp $ */
/*
@@ -585,13 +585,13 @@ nfs_mount(mp, path, data, ndp, p)
return (error);
if (args.version != NFS_ARGSVERSION)
return (EPROGMISMATCH);
+ args.flags |= NFSMNT_RESVPORT; /* ALWAYS allocate one */
if (mp->mnt_flag & MNT_UPDATE) {
register struct nfsmount *nmp = VFSTONFS(mp);
if (nmp == NULL)
return (EIO);
nfs_decode_args(nmp, &args);
- args.flags |= NFSMNT_RESVPORT; /* ALWAYS allocate one */
return (0);
}
error = copyin((caddr_t)args.fh, (caddr_t)nfh, args.fhsize);