Hack to work around a problem in either SunOS 4.1.4 or our RPC code:

once we determined the rigth protocol to use, recall get_nfs_version()
so that the last RPC call was a successfull one. Otherwise with a SunOS 4.1.4
server (which doesn't accept TCP mounts) UDP mounts would fail.
This commit is contained in:
bouyer 1999-04-07 11:21:49 +00:00
parent 4397d4c1fd
commit da5122af6d

View File

@ -1,4 +1,4 @@
/* $NetBSD: srvr_nfs.c,v 1.11 1999/03/30 08:23:26 bouyer Exp $ */
/* $NetBSD: srvr_nfs.c,v 1.12 1999/04/07 11:21:49 bouyer Exp $ */
/*
* Copyright (c) 1997-1999 Erez Zadok
@ -755,6 +755,12 @@ find_nfs_srvr(mntfs *mf)
#endif /* not HAVE_FS_NFS3 */
}
/*
* XXX RPC or SunOS 4.1.4 bug ? the last call to nfs_get_version() must
* be done with the used version and proto
*/
(void)get_nfs_version(host, ip, nfs_version, nfs_proto);
if (!nfs_proto)
nfs_proto = "udp";