diff options
author | mbr <mbr@FreeBSD.org> | 2004-08-16 00:20:31 +0000 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2004-08-16 00:20:31 +0000 |
commit | 4c375c5d1f3e04fe16261b9c2f2991f264149c02 (patch) | |
tree | 5532ffbfbe4bcbfaa113171ddff2767cac89e896 | |
parent | 5e2ceaef264e036dd8d0a8aa7d7c2ea003df1aa2 (diff) | |
download | FreeBSD-src-4c375c5d1f3e04fe16261b9c2f2991f264149c02.zip FreeBSD-src-4c375c5d1f3e04fe16261b9c2f2991f264149c02.tar.gz |
MFNetBSD
Decrease log severity to debug if a protocol is not supported by the
kernel (rpcbind checks /etc/netconfig if a protocol is available).
This avoids "rpcbind: cannot create socket for tcp6" messages
at startup on IPv4-only kernels.
-rw-r--r-- | usr.sbin/rpcbind/rpcbind.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/rpcbind/rpcbind.c b/usr.sbin/rpcbind/rpcbind.c index 9822140..ec8daca 100644 --- a/usr.sbin/rpcbind/rpcbind.c +++ b/usr.sbin/rpcbind/rpcbind.c @@ -274,7 +274,11 @@ init_transport(struct netconfig *nconf) */ if (nconf->nc_semantics != NC_TPI_CLTS) { if ((fd = __rpc_nconf2fd(nconf)) < 0) { - syslog(LOG_ERR, "cannot create socket for %s", + int non_fatal = 0; + + if (errno == EPROTONOSUPPORT) + non_fatal = 1; + syslog(non_fatal?LOG_DEBUG:LOG_ERR, "cannot create socket for %s", nconf->nc_netid); return (1); } |