From: Chuck Lever Date: Mon, 29 Aug 2011 17:22:21 +0000 (-0400) Subject: sm-notify: sm-notify doesn't handle localhost properly X-Git-Tag: debian/1%1.2.5-1~11^2~22 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=fe8d91dde4b646637756e5414f8fc9b211d9fe33;hp=fe8d91dde4b646637756e5414f8fc9b211d9fe33;p=nfs-utils.git 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 Signed-off-by: Steve Dickson ---