Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/usr.sbin/rpcbind Pull up revision 1.7 (requested by mar...



details:   https://anonhg.NetBSD.org/src/rev/2d1c8ea9e5b6
branches:  netbsd-2-0
changeset: 561191:2d1c8ea9e5b6
user:      tron <tron%NetBSD.org@localhost>
date:      Sun May 30 07:18:59 2004 +0000

description:
Pull up revision 1.7 (requested by martin in ticket #414):
Decrease log severity to debug if a protocol is not supported by the
kernel. This avoids "rpcbind: cannot create socket for tcp6" messages
at startup on IPv4-only kernels.

diffstat:

 usr.sbin/rpcbind/rpcbind.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 4bcd30588660 -r 2d1c8ea9e5b6 usr.sbin/rpcbind/rpcbind.c
--- a/usr.sbin/rpcbind/rpcbind.c        Sun May 30 07:13:26 2004 +0000
+++ b/usr.sbin/rpcbind/rpcbind.c        Sun May 30 07:18:59 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rpcbind.c,v 1.6 2003/10/29 17:51:33 fvdl Exp $ */
+/*     $NetBSD: rpcbind.c,v 1.6.2.1 2004/05/30 07:18:59 tron Exp $     */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -249,7 +249,8 @@
         * XXX - using RPC library internal functions.
         */
        if ((fd = __rpc_nconf2fd(nconf)) < 0) {
-               syslog(LOG_ERR, "cannot create socket for %s", nconf->nc_netid);
+               int non_fatal = errno == EPROTONOSUPPORT;
+               syslog(non_fatal?LOG_DEBUG:LOG_ERR, "cannot create socket for %s", nconf->nc_netid);
                return (1);
        }
 



Home | Main Index | Thread Index | Old Index