summaryrefslogtreecommitdiffstats
path: root/support/export/client.c
diff options
context:
space:
mode:
authorScott Mayhew <smayhew@redhat.com>2015-12-11 11:03:31 -0500
committerSteve Dickson <steved@redhat.com>2015-12-11 11:22:25 -0500
commit51f51533155f70ce623bfeed2514512eb9473b63 (patch)
treed1e591e1551a67c598154025e407b08a8f6ddc80 /support/export/client.c
parenta9a7728d874398c855e386d9583cf05e681ecc1c (diff)
downloadnfs-utils-51f51533155f70ce623bfeed2514512eb9473b63.tar.gz
nfs-utils-51f51533155f70ce623bfeed2514512eb9473b63.tar.xz
nfs-utils-51f51533155f70ce623bfeed2514512eb9473b63.zip
statd: make statd_canonical_name return the presentation address if it maps to an empty
Certain name resolution misconfigurations (for example, a hosts file entry with an ip address but no hostnames) can cause get_nameinfo() to return an empty string in buf, which will lead to this cryptic failure: Dec 7 09:37:44 hostname rpc.statd[8024]: Failed to insert: creating /var/lib/nfs/statd/sm/: Is a directory Dec 7 09:37:44 hostname rpc.statd[8024]: STAT_FAIL to hostname.example.com for SM_MON of 192.168.1.2 Dec 7 09:37:44 hostname kernel: lockd: cannot monitor 192.168.1.2 It's better in that case to just go ahead and use the presentation address instead. Signed-off-by: Scott Mayhew <smayhew@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/export/client.c')
0 files changed, 0 insertions, 0 deletions