diff options
author | Guido van Rooij <guido@FreeBSD.org> | 1997-04-01 17:20:17 +0000 |
---|---|---|
committer | Guido van Rooij <guido@FreeBSD.org> | 1997-04-01 17:20:17 +0000 |
commit | d5e1fb3173450f38838dd97bb1d6b0ef99e041cf (patch) | |
tree | 69bbe6a3f4335582250284b8cd7920415f921780 /sbin/mount_nfs | |
parent | 12f298775417b9d60184adf9981f6cf5a62d957b (diff) | |
download | src-d5e1fb3173450f38838dd97bb1d6b0ef99e041cf.tar.gz src-d5e1fb3173450f38838dd97bb1d6b0ef99e041cf.zip |
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.
Notes
Notes:
svn path=/head/; revision=24495
Diffstat (limited to 'sbin/mount_nfs')
-rw-r--r-- | sbin/mount_nfs/mount_nfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c index 1a3dd1046379..2e908cb1ce37 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, |