X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnetwork.c;h=f6fa5fd340ec353d4e9cc8155569babdaeef8806;hp=4ec7c7bc09be37291aafc4f509fc74c0465ac584;hb=3339c1f73c05fc9b5cf51e14a2033ec38f671334;hpb=b46dc42505da799a05a3a5e8f004b308f6b9eef7 diff --git a/utils/mount/network.c b/utils/mount/network.c index 4ec7c7b..f6fa5fd 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -848,10 +848,14 @@ int nfs_advise_umount(const struct sockaddr *sap, const socklen_t salen, (xdrproc_t)xdr_dirpath, (caddr_t)argp, (xdrproc_t)xdr_void, NULL, timeout); - if (verbose && res != RPC_SUCCESS) - nfs_error(_("%s: UMNT call failed: %s"), - progname, clnt_sperrno(res)); + if (res != RPC_SUCCESS) { + rpc_createerr.cf_stat = res; + CLNT_GETERR(client, &rpc_createerr.cf_error); + if (verbose) + nfs_error(_("%s: UMNT call failed: %s"), + progname, clnt_sperrno(res)); + } auth_destroy(client->cl_auth); CLNT_DESTROY(client);