[Midnightbsd-cvs] src [8567] trunk/usr.sbin/nfsd/nfsd.c: allow nfsd to start with kernels not including IPv6.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Sep 19 11:23:17 EDT 2016


Revision: 8567
          http://svnweb.midnightbsd.org/src/?rev=8567
Author:   laffer1
Date:     2016-09-19 11:23:17 -0400 (Mon, 19 Sep 2016)
Log Message:
-----------
allow nfsd to start with kernels not including IPv6.

Modified Paths:
--------------
    trunk/usr.sbin/nfsd/nfsd.c

Modified: trunk/usr.sbin/nfsd/nfsd.c
===================================================================
--- trunk/usr.sbin/nfsd/nfsd.c	2016-09-19 15:22:52 UTC (rev 8566)
+++ trunk/usr.sbin/nfsd/nfsd.c	2016-09-19 15:23:17 UTC (rev 8567)
@@ -236,7 +236,7 @@
 	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 ||



More information about the Midnightbsd-cvs mailing list