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:
parent
00ad91b529
commit
532583ce14
@ -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 ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user