X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fstropts.c;fp=utils%2Fmount%2Fstropts.c;h=4d023d63408c9425445b00517d5dd3e12670c4d2;hp=f1aa5030062e2cb7bee232d6f14ea880ace688b0;hb=54f06bfefc4841657aa585dd791ebd2f65a3c299;hpb=151a82d9c80315caff7081f16916d1913a67033a 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;