]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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 12d3253228fadb0e074590b83d6e08808c2ec59e..b8028bbed3bca6e76d88d44506a6a495545ec5b6 100644 (file)
@@ -212,7 +212,7 @@ int
 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;