X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fmount%2Fstropts.c;h=4d023d63408c9425445b00517d5dd3e12670c4d2;hb=b60b5b0b5678579e9e9559bfa4df5e24357fb023;hp=f1aa5030062e2cb7bee232d6f14ea880ace688b0;hpb=cf5b38e707b629540b5123124228311a620e3dce;p=nfs-utils.git diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c index f1aa503..4d023d6 100644 --- a/utils/mount/stropts.c +++ b/utils/mount/stropts.c @@ -538,6 +538,8 @@ nfs_rewrite_pmap_mount_options(struct mount_options *options) errno = ESPIPE; if (rpc_createerr.cf_stat == RPC_PROGNOTREGISTERED) errno = EOPNOTSUPP; + else if (rpc_createerr.cf_stat == RPC_AUTHERROR) + errno = EACCES; else if (rpc_createerr.cf_error.re_errno != 0) errno = rpc_createerr.cf_error.re_errno; return 0;