Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2012 21:00:22 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244447 - head/usr.sbin/nfsd
Message-ID:  <201212192100.qBJL0MQx084649@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rmacklem
Date: Wed Dec 19 21:00:22 2012
New Revision: 244447
URL: http://svnweb.freebsd.org/changeset/base/244447

Log:
  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

Modified:
  head/usr.sbin/nfsd/nfsd.c

Modified: head/usr.sbin/nfsd/nfsd.c
==============================================================================
--- head/usr.sbin/nfsd/nfsd.c	Wed Dec 19 20:33:16 2012	(r244446)
+++ head/usr.sbin/nfsd/nfsd.c	Wed Dec 19 21:00:22 2012	(r244447)
@@ -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 ||



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212192100.qBJL0MQx084649>