diff options
author | joerg <joerg@FreeBSD.org> | 1997-10-19 16:40:01 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1997-10-19 16:40:01 +0000 |
commit | 3f21e439b0000c3c0982adfa0b180455db95d8cf (patch) | |
tree | 47f90e5492a6eeca7e2db6b7dc3289b2ff89dde3 /sbin/mount_nfs/mount_nfs.c | |
parent | 00f77bac6a3a0adaaa4a6521db407d947796fd99 (diff) | |
download | FreeBSD-src-3f21e439b0000c3c0982adfa0b180455db95d8cf.zip FreeBSD-src-3f21e439b0000c3c0982adfa0b180455db95d8cf.tar.gz |
Introduce a -N option that disables the use of reserved ports, now
that -P is on by default. Remove do-nothing code in the -P case (but
leave the option itself for backward compatibility).
PR: bin/4500
Diffstat (limited to 'sbin/mount_nfs/mount_nfs.c')
-rw-r--r-- | sbin/mount_nfs/mount_nfs.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c index dda54c5..efe52a2 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.22 1997/05/01 12:30:02 dfr Exp $"; + "$Id: mount_nfs.c,v 1.23 1997/06/03 13:49:26 dfr Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -269,7 +269,7 @@ main(argc, argv) nfsargs = nfsdefargs; nfsargsp = &nfsargs; while ((c = getopt(argc, argv, - "23a:bcdD:g:I:iKL:lm:o:PpqR:r:sTt:w:x:U")) != -1) + "23a:bcdD:g:I:iKL:lm:No:PpqR:r:sTt:w:x:U")) != -1) switch (c) { case '2': mountmode = V2; @@ -341,6 +341,9 @@ main(argc, argv) realm[REALM_SZ - 1] = '\0'; break; #endif + case 'N': + nfsargsp->flags &= ~NFSMNT_RESVPORT; + break; case 'o': altflags = 0; setflags(&altflags, &nfsargsp->flags, TRUE); @@ -375,7 +378,7 @@ main(argc, argv) mountmode = V3; break; case 'P': - nfsargsp->flags |= NFSMNT_RESVPORT; + /* obsolete for NFSMNT_RESVPORT, now default */ break; #ifdef ISO case 'p': |