diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2012-12-19 21:00:22 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2012-12-19 21:00:22 +0000 |
commit | 532583ce14f393a4d251a0d211e8435a824be016 (patch) | |
tree | bfecf4b35a1cbe5cd0ea00604ba48eaf30388c58 /usr.sbin/nfsd | |
parent | 00ad91b529ae2016b2b61338f1c25ae4f5d873ff (diff) | |
download | FreeBSD-src-532583ce14f393a4d251a0d211e8435a824be016.zip FreeBSD-src-532583ce14f393a4d251a0d211e8435a824be016.tar.gz |
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
Diffstat (limited to 'usr.sbin/nfsd')
-rw-r--r-- | usr.sbin/nfsd/nfsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 || |