Post r243965 the nfsd daemon will not start up for kernels

built without "options INET6". This patch fixes the problem.

Reported by:	avg
Tested by:	avg
MFC after:	2 weeks
This commit is contained in:
Rick Macklem 2012-12-19 21:00:22 +00:00
parent f82ad6f488
commit bf29178ce5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244447

View File

@ -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 ||