Oops, I did my usual brain fart again and forgot to attach the
patch. Here it is, rick

----- Original Message -----
> Just fyi, r243965 introduced a minor pola violation where the
> nfsd daemon won't start for kernels built without "options INET6".
> 
> The attached patch, which I will commit to head later to-day, fixes
> the problem. (Or you can add "options INET6" to your kernel config.)
> 
> Reported and tested by avg@.
> 
> rick
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to
> "freebsd-current-unsubscr...@freebsd.org"
--- usr.sbin/nfsd/nfsd.c.sav	2012-12-18 08:32:14.000000000 -0500
+++ usr.sbin/nfsd/nfsd.c	2012-12-18 08:33:19.000000000 -0500
@@ -264,7 +264,7 @@ main(int argc, char **argv)
 	ip6flag = 1;
 	s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP);
 	if (s == -1) {
-		if (errno != EPROTONOSUPPORT)
+		if (errno != EPROTONOSUPPORT && errno != EAFNOSUPPORT)
 			err(1, "socket");
 		ip6flag = 0;
 	} else if (getnetconfigent("udp6") == NULL ||
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to