diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2011-08-29 13:22:21 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2011-08-29 13:43:28 -0400 |
commit | bbd9f5a98c3a401371bc642ac8545b1ccfeeab4d (patch) | |
tree | fde0f7906fcef9cd3c8881264faeebaef1c573d3 /utils/exportfs/exportfs.c | |
parent | 140468c2968472e871b972e400f58ad659458a2d (diff) | |
download | nfs-utils-bbd9f5a98c3a401371bc642ac8545b1ccfeeab4d.tar.gz nfs-utils-bbd9f5a98c3a401371bc642ac8545b1ccfeeab4d.tar.xz nfs-utils-bbd9f5a98c3a401371bc642ac8545b1ccfeeab4d.zip |
sm-notify: sm-notify doesn't handle localhost properly
It looks like the existing algorithm for verifying the passed-in bind
address is as broken as statd_matchhostname() used to be: for IP
addresses, AI_CANONNAME is useless. We need to have getnameinfo(3) or
equivalent in there.
Clean up: extract the logic that verifies the command line bind
address into its own function, and make it handle canonical name
lookup correctly.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/exportfs/exportfs.c')
0 files changed, 0 insertions, 0 deletions