summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1997-04-01 17:20:17 +0000
committerguido <guido@FreeBSD.org>1997-04-01 17:20:17 +0000
commit7f21d44360e215e7dddb821946dcca7b8e6a4431 (patch)
treec3bda26d279d7d4a57e6bb9cdc8df7470bae5053 /sbin
parent501df7d65d52f873f2e64001312f33e0d4d105c9 (diff)
downloadFreeBSD-src-7f21d44360e215e7dddb821946dcca7b8e6a4431.zip
FreeBSD-src-7f21d44360e215e7dddb821946dcca7b8e6a4431.tar.gz
Make mount_nfs use reserved ports by default.. Mounts already use
a reserved port, so why not the nfs rpc's themselves? With user allowed mounts, this perhaps needs a closer look, but on the other hand, a user could already specify the flag. If normal users should not be able to use resserved ports, the kernel should check for the flag at mount time.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount_nfs/mount_nfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c
index 1a3dd10..2e908cb 100644
--- a/sbin/mount_nfs/mount_nfs.c
+++ b/sbin/mount_nfs/mount_nfs.c
@@ -45,7 +45,7 @@ static char copyright[] =
static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
*/
static const char rcsid[] =
- "$Id: mount_nfs.c,v 1.17 1997/03/11 12:31:56 peter Exp $";
+ "$Id: mount_nfs.c,v 1.18 1997/03/29 03:32:39 imp Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -139,7 +139,7 @@ struct nfs_args nfsdefargs = {
0,
(u_char *)0,
0,
- 0,
+ NFSMNT_RESVPORT,
NFS_WSIZE,
NFS_RSIZE,
NFS_READDIRSIZE,
OpenPOWER on IntegriCloud