From owner-svn-src-head@FreeBSD.ORG Wed Dec 19 21:00:23 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 105C4A2B; Wed, 19 Dec 2012 21:00:23 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id E8B6C8FC13; Wed, 19 Dec 2012 21:00:22 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBJL0M9a084650; Wed, 19 Dec 2012 21:00:22 GMT (envelope-from rmacklem@svn.freebsd.org) Received: (from rmacklem@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBJL0MQx084649; Wed, 19 Dec 2012 21:00:22 GMT (envelope-from rmacklem@svn.freebsd.org) Message-Id: <201212192100.qBJL0MQx084649@svn.freebsd.org> From: Rick Macklem Date: Wed, 19 Dec 2012 21:00:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r244447 - head/usr.sbin/nfsd X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Dec 2012 21:00:23 -0000 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 ||