X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fstropts.c;h=74224ffdad2a0e477b65b05748384c2d3d51f279;hp=57a4b32df3babb364a717bd560afb35e269e38c3;hb=df6c9d1821585c773297fbfffa1dd315b9c84359;hpb=0422d28f513d2e9ea116e28a2556cee54c8f1d19 diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c index 57a4b32..74224ff 100644 --- a/utils/mount/stropts.c +++ b/utils/mount/stropts.c @@ -515,6 +515,10 @@ nfs_rewrite_pmap_mount_options(struct mount_options *options) if (!nfs_probe_bothports(mnt_saddr, mnt_salen, &mnt_pmap, nfs_saddr, nfs_salen, &nfs_pmap)) { errno = ESPIPE; + if (rpc_createerr.cf_stat == RPC_PROGNOTREGISTERED) + errno = EOPNOTSUPP; + else if (rpc_createerr.cf_error.re_errno != 0) + errno = rpc_createerr.cf_error.re_errno; return 0; }