Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/mount_nfs use the netid value because it could be udp6...
details: https://anonhg.NetBSD.org/src/rev/ea33e627e668
branches: trunk
changeset: 351157:ea33e627e668
user: christos <christos%NetBSD.org@localhost>
date: Fri Feb 03 21:56:01 2017 +0000
description:
use the netid value because it could be udp6...
diffstat:
sbin/mount_nfs/getnfsargs.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r b74c3a90ab4f -r ea33e627e668 sbin/mount_nfs/getnfsargs.c
--- a/sbin/mount_nfs/getnfsargs.c Fri Feb 03 21:10:22 2017 +0000
+++ b/sbin/mount_nfs/getnfsargs.c Fri Feb 03 21:56:01 2017 +0000
@@ -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 @@
#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 @@
* 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(
Home |
Main Index |
Thread Index |
Old Index