Subject: amd and NFSMNT_RESVPORT flag.
To: Ncu <current-users@NetBSD.ORG>
From: Manuel Bouyer <bouyer@ensta.fr>
List: current-users
Date: 09/11/1994 19:27:19
	Hello,
Here is a (verry) little patch for amd, to allow the use of the NFSMNT_RESVPORT
flag. I need this to automount a filesystem from a Sun3 (SunOS  4.1.1)
nfs server, which don't accept requests from unreserved port.
I just need to add "rport" to the option list in my amd map.

--
Manuel Bouyer, Ecole Nationale Superieure de Techniques Avancees, Paris
email: bouyer@ensta.fr
--

*** src_orig/usr.sbin/amd/amd/nfs_ops.c	Sun Sep 11 19:12:51 1994
--- src_compile21.08.94/usr.sbin/amd/amd/nfs_ops.c	Sun Sep 11 11:32:33 1994
***************
*** 629,634 ****
--- 629,639 ----
  		nfs_args.sotype = SOCK_STREAM;
  #endif /* HAS_TCP_NFS */
  
+ #ifdef NFSMNT_RESVPORT
+ 	if (hasmntopt(&mnt,"rport") != NULL)
+ 		nfs_args.flags = NFSMNT_RESVPORT;
+ #endif NFSMNT_RESVPORT
+ 
  
  #ifdef ULTRIX_HACK
  	/*