]> git.decadent.org.uk Git - nfs-utils.git/commit
showmount command: clean up error returns from connect_nb()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 26 Sep 2008 17:18:11 +0000 (13:18 -0400)
committerSteve Dickson <steved@redhat.com>
Fri, 26 Sep 2008 17:18:11 +0000 (13:18 -0400)
commit44d18e8887cd2fdcf4996ddcbb827ed19aca8b2d
tree99f2e97e32ab569439108c7c74e029a962fd2c79
parent18c6c616e07ec4fcd27108d87b6f02280d9687d6
showmount command: clean up error returns from connect_nb()

Clean up connect_nb() in the showmount command.

Sometimes it returns -1 on error, and sometimes a negative errno.  On error,
it should always return one of these or the other, not both.

Similar functions in other parts of nfs-utils return -1 on error, and set
errno; so let's do that here too.

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