]> git.decadent.org.uk Git - nfs-utils.git/commit - utils/exportfs/exportfs.c
exportfs: matchhostname() doesn't handle localhost properly
authorChuck Lever <chuck.lever@oracle.com>
Mon, 29 Aug 2011 17:20:22 +0000 (13:20 -0400)
committerLuk Claes <luk@debian.org>
Sun, 2 Oct 2011 14:16:47 +0000 (16:16 +0200)
commitb52f41ccc1cb58bb3f3db928ebcc6f1cbce6d751
tree455f9a703632b311f979c844fcf16f71ada6ec46
parente140f282e413ac8076531636fdc9c0f8f177112b
exportfs: matchhostname() doesn't handle localhost properly

Same change as statd_matchhostname() is necessary for the logic in
exportfs.

Recall that these are "separate but nearly equal" because the exportfs
version requires extra expensive string checking that would be onerous
for statd.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/exportfs/exportfs.c