Remove the AI_ADDRCONFIG hint flag to getaddrinfo() when it's
authorSteve Dickson <steved@redhat.com>
Thu, 12 Nov 2009 19:16:12 +0000 (14:16 -0500)
committerSteve Dickson <steved@redhat.com>
Thu, 12 Nov 2009 19:16:12 +0000 (14:16 -0500)
call by nfsd to set up the file descriptors that are
sent to the kernel. The flag causes the getaddrinfo()
to fail, with EAI_NONAME, when there is not a non-loopback
network interface configured.

Signed-off-by: Steve Dickson <steved@redhat.com>
utils/nfsd/nfssvc.c

index 12d3253..b8028bb 100644 (file)
@@ -212,7 +212,7 @@ int
 nfssvc_set_sockets(const int family, const unsigned int protobits,
                   const char *host, const char *port)
 {
 nfssvc_set_sockets(const int family, const unsigned int protobits,
                   const char *host, const char *port)
 {
-       struct addrinfo hints = { .ai_flags = AI_PASSIVE | AI_ADDRCONFIG };
+       struct addrinfo hints = { .ai_flags = AI_PASSIVE };
 
        hints.ai_family = family;
 
 
        hints.ai_family = family;