kern/96242: rpcbind ignores NO_INET6=yes in make.conf

Alex Kozlov stalker at rm-rf.kiev.ua
Mon Apr 24 06:10:22 UTC 2006


The following reply was made to PR kern/96242; it has been noted by GNATS.

From: Alex Kozlov <stalker at rm-rf.kiev.ua>
To: Jeremy Chadwick <freebsd at jdc.parodius.com>
Cc: bug-followup at freebsd.org
Subject: Re: kern/96242: rpcbind ignores NO_INET6=yes in make.conf
Date: Mon, 24 Apr 2006 09:07:03 +0300

 On Mon, Apr 24, 2006 at 06:52:38AM +0300, Alex Kozlov wrote:
 > On Sun, Apr 23, 2006 at 08:36:56PM -0700, Jeremy Chadwick wrote:
 > > On Mon, Apr 24, 2006 at 06:10:50AM +0300, Alex Kozlov wrote:
 > > > It harmless. 
 > > > But if you wish, you can comment udp6/tcp6 lines in /etc/netconfig
 > > 
 > > Hey, thanks for this!  That totally fixed the problem.  Surprisingly,
 > > until now, I'd never heard of that file...
 > Plain, old TI-RPC ')
 > 
 > > 
 > > Again, thanks!
 > This is quick and dirty fix.
 > In more propper way you may want apply this patch:
 > 
 Sorry. I mean:
 --- rpcbind.c   Sun Nov  7 06:32:51 2004
 +++ rpcbind.c.new Mon Apr 24 08:55:48 2006
 @@ -173,7 +173,12 @@
     init_transport(nconf);
 
     while ((nconf = getnetconfig(nc_handle))) {
 +#ifdef INET6
         if (nconf->nc_flag & NC_VISIBLE)
 +#else
 +       if (nconf->nc_flag & NC_VISIBLE &&
 +                      strcmp(nconf->nc_protofmly, NC_INET6) != 0)
 +#endif
             init_transport(nconf);
     }
     endnetconfig(nc_handle);
 
 
 --
 Adios


More information about the freebsd-bugs mailing list