]> git.decadent.org.uk Git - nfs-utils.git/commit
mount.nfs: get_socket() may clobber errno, but preserves .re_errno
authorChuck Lever <chuck.lever@oracle.com>
Fri, 3 Aug 2007 17:24:00 +0000 (13:24 -0400)
committerNeil Brown <neilb@suse.de>
Fri, 3 Aug 2007 22:27:40 +0000 (08:27 +1000)
commit7f8fae8cd60025f7fa1b446da363dcc2e1fb5b6a
tree076efb9ae9849daf4b28ce24df9d05aad67c8bb2
parentac3611f10500d2942d0295c65b3d7b47621609d4
mount.nfs: get_socket() may clobber errno, but preserves .re_errno

get_socket() guarantees that rpc_createerr.cf_error.re_errno is set
correctly after an error, but it can wipe errno if it has to print an error
message.  Make sure that clnt_ping() checks the correct error code when
get_socket() returns.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
utils/mount/network.c