mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 01:34:09 +00:00
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
f82ad6f488
commit
bf29178ce5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244447
|
@ -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…
Reference in a new issue