summaryrefslogtreecommitdiffstats
path: root/utils/gssd/krb5_util.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2015-07-14 10:42:16 -0400
committerSteve Dickson <steved@redhat.com>2015-07-14 14:04:45 -0400
commit2f8a60200f4cc599bb421eb22de3212488d28701 (patch)
treeebd8c76717fe4abbee46b3b4be2701ff464ff24f /utils/gssd/krb5_util.c
parentc6b8191374d9ad064eb96423400a6314c2d0102e (diff)
downloadnfs-utils-2f8a60200f4cc599bb421eb22de3212488d28701.tar.gz
nfs-utils-2f8a60200f4cc599bb421eb22de3212488d28701.tar.xz
nfs-utils-2f8a60200f4cc599bb421eb22de3212488d28701.zip
rpc.nfsd: Squelch DNS errors when using the --host option
Sean Elble <elbles@sessys.com> says: > [rpc.nfsd --host] throws an error/warning (where nfs-server is > defined in /etc/hosts for the IPv4 address of the interface I wish > for TCP port 2049 to be opened on): > > rpc.nfsd: unable to resolve nfs-server:nfs to inet6 address: Name > or service not known I think we can simplify the use of getaddrinfo(3) so that only one call is needed to gather both IPv4 and IPv6 addresses. The call should fail, and an error should be reported, only when there are _no_ addresses bound to a hostname. Reported-by: Sean Elble <elbles@sessys.com> Reviewed-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/gssd/krb5_util.c')
0 files changed, 0 insertions, 0 deletions