From aa16ae57f1705759d7f0e47168d1272fb39a51e6 Mon Sep 17 00:00:00 2001 From: itojun Date: Sun, 16 Jul 2000 08:11:34 +0000 Subject: [PATCH] fatal typo: need listen(tcp6sock). --- usr.sbin/mountd/mountd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index e95d060d2b0a..58dc2ff818fe 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -1,4 +1,4 @@ -/* $NetBSD: mountd.c,v 1.72 2000/06/27 20:32:28 thorpej Exp $ */ +/* $NetBSD: mountd.c,v 1.73 2000/07/16 08:11:34 itojun Exp $ */ /* * Copyright (c) 1989, 1993 @@ -51,7 +51,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95"; #else -__RCSID("$NetBSD: mountd.c,v 1.72 2000/06/27 20:32:28 thorpej Exp $"); +__RCSID("$NetBSD: mountd.c,v 1.73 2000/07/16 08:11:34 itojun Exp $"); #endif #endif /* not lint */ @@ -410,7 +410,7 @@ main(argc, argv) if (tcp6sock != -1 && tcp6conf != NULL) { bindresvport(tcp6sock, NULL); - listen(tcpsock, SOMAXCONN); + listen(tcp6sock, SOMAXCONN); tcp6transp = svc_vc_create(tcp6sock, 0, 0); if (tcp6transp != NULL) { if (!svc_reg(tcp6transp, RPCPROG_MNT, RPCMNT_VER1, @@ -536,6 +536,7 @@ mntsrv(rqstp, transp) scan_tree(ep->ex_dirl, saddr) == 0))) { if (sport >= IPPORT_RESERVED && !(hostset & DP_NORESMNT)) { +fprintf(stderr, "hostset=%x\n", hostset); syslog(LOG_NOTICE, "Refused mount RPC from host %s port %d", numerichost, sport);