From da5122af6d07675fb00eff26f56660c50a281b02 Mon Sep 17 00:00:00 2001 From: bouyer Date: Wed, 7 Apr 1999 11:21:49 +0000 Subject: [PATCH] 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. --- usr.sbin/amd/amd/srvr_nfs.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/usr.sbin/amd/amd/srvr_nfs.c b/usr.sbin/amd/amd/srvr_nfs.c index 769c871f1c32..1c35cb548a12 100644 --- a/usr.sbin/amd/amd/srvr_nfs.c +++ b/usr.sbin/amd/amd/srvr_nfs.c @@ -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";