Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2012 10:08:29 -0500 (EST)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        freebsd-current@freebsd.org
Subject:   Re: nfsd won't start on post r243965 kernels without INET6
Message-ID:  <836862692.1494392.1355929709771.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <58267838.1494299.1355929536321.JavaMail.root@erie.cs.uoguelph.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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-unsubscribe@freebsd.org"

[-- Attachment #2 --]
--- 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 ||

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?836862692.1494392.1355929709771.JavaMail.root>