diff options
author | Steve Dickson <steved@redhat.com> | 2009-11-12 14:16:12 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-11-12 14:16:12 -0500 |
commit | 2905358524c0835311501bad04c521479b0525ff (patch) | |
tree | e0a1cc4add6d009509d86b65d8601ad3abc3832e /utils/nfsd/nfssvc.c | |
parent | 67e6d2d8a96e98d7f21693a9d034da81d3f90084 (diff) | |
download | nfs-utils-2905358524c0835311501bad04c521479b0525ff.tar.gz nfs-utils-2905358524c0835311501bad04c521479b0525ff.tar.xz nfs-utils-2905358524c0835311501bad04c521479b0525ff.zip |
Remove the AI_ADDRCONFIG hint flag to getaddrinfo() when it's
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>
Diffstat (limited to 'utils/nfsd/nfssvc.c')
-rw-r--r-- | utils/nfsd/nfssvc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/nfsd/nfssvc.c b/utils/nfsd/nfssvc.c index 12d3253..b8028bb 100644 --- a/utils/nfsd/nfssvc.c +++ b/utils/nfsd/nfssvc.c @@ -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; |