3245f71
commit 2905358524c0835311501bad04c521479b0525ff
3245f71
Author: Steve Dickson <steved@redhat.com>
3245f71
Date:   Thu Nov 12 14:16:12 2009 -0500
3245f71
3245f71
    Remove the AI_ADDRCONFIG hint flag to getaddrinfo() when it's
3245f71
    call by nfsd to set up the file descriptors that are
3245f71
    sent to the kernel. The flag causes the getaddrinfo()
3245f71
    to fail, with EAI_NONAME, when there is not a non-loopback
3245f71
    network interface configured.
3245f71
    
3245f71
    Signed-off-by: Steve Dickson <steved@redhat.com>
3245f71
3245f71
diff --git a/utils/nfsd/nfssvc.c b/utils/nfsd/nfssvc.c
3245f71
index 12d3253..b8028bb 100644
3245f71
--- a/utils/nfsd/nfssvc.c
3245f71
+++ b/utils/nfsd/nfssvc.c
3245f71
@@ -212,7 +212,7 @@ int
3245f71
 nfssvc_set_sockets(const int family, const unsigned int protobits,
3245f71
 		   const char *host, const char *port)
3245f71
 {
3245f71
-	struct addrinfo hints = { .ai_flags = AI_PASSIVE | AI_ADDRCONFIG };
3245f71
+	struct addrinfo hints = { .ai_flags = AI_PASSIVE };
3245f71
 
3245f71
 	hints.ai_family = family;
3245f71