gssd: gethostname(3) returns zero or -1, not an errno
authorChuck Lever <chuck.lever@oracle.com>
Sat, 23 Mar 2013 12:13:22 +0000 (08:13 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 25 Mar 2013 14:09:11 +0000 (10:09 -0400)
commit128bca853fc6df20a87d4d3dfe12c1b77204d673
tree7e06da7028c6c2e2999a783b06f69dd3a4e06459
parent8239ec6587ce103d7bcb4b37c680c0c10ef5b37c
gssd: gethostname(3) returns zero or -1, not an errno

According to "man gethostname," gssd is handling the return value of
gethostname(3) incorrectly.  It looks like other gethostname(3) call
sites in nfs-utils are already correct.

Acked-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/gssd/krb5_util.c