From 532583ce14f393a4d251a0d211e8435a824be016 Mon Sep 17 00:00:00 2001 From: rmacklem Date: Wed, 19 Dec 2012 21:00:22 +0000 Subject: 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 --- usr.sbin/nfsd/nfsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/nfsd') diff --git a/usr.sbin/nfsd/nfsd.c b/usr.sbin/nfsd/nfsd.c index 6a2f785..0e39138 100644 --- a/usr.sbin/nfsd/nfsd.c +++ b/usr.sbin/nfsd/nfsd.c @@ -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 || -- cgit v1.1