use the netid value because it could be udp6...

This commit is contained in:
christos 2017-02-03 21:56:01 +00:00
parent 6b1f1a07e7
commit e18b8724f0

View File

@ -1,4 +1,4 @@
/* $NetBSD: getnfsargs.c,v 1.16 2013/06/29 22:56:26 christos Exp $ */
/* $NetBSD: getnfsargs.c,v 1.17 2017/02/03 21:56:01 christos Exp $ */
/*
* Copyright (c) 1992, 1993, 1994
@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993, 1994\
#if 0
static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
#else
__RCSID("$NetBSD: getnfsargs.c,v 1.16 2013/06/29 22:56:26 christos Exp $");
__RCSID("$NetBSD: getnfsargs.c,v 1.17 2017/02/03 21:56:01 christos Exp $");
#endif
#endif /* not lint */
@ -201,8 +201,9 @@ tryagain:
* XXX relies on clnt_tcp_create to bind to a reserved
* socket.
*/
printf("netid=%s\n", netid);
clp = clnt_tp_create(hostp, RPCPROG_MNT, mntvers,
mnttcp_ok ? nconf : getnetconfigent("udp"));
mnttcp_ok ? nconf : getnetconfigent(netid));
if (clp == NULL) {
if ((opflags & ISBGRND) == 0) {
clnt_pcreateerror(