From d5e1fb3173450f38838dd97bb1d6b0ef99e041cf Mon Sep 17 00:00:00 2001 From: Guido van Rooij Date: Tue, 1 Apr 1997 17:20:17 +0000 Subject: [PATCH] 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. --- sbin/mount_nfs/mount_nfs.c | 4 ++-- 1 file 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 @@ -139,7 +139,7 @@ struct nfs_args nfsdefargs = { 0, (u_char *)0, 0, - 0, + NFSMNT_RESVPORT, NFS_WSIZE, NFS_RSIZE, NFS_READDIRSIZE,