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 ||
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to