X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fstropts.c;h=709f0ff24ed3e4d1fd7382c03de2f42919dcd0ee;hp=7b63b4572128909dbe6bf61fd6084caef1a8e2b6;hb=e1eccc5fc317f73801522b3b498c6dab67b048d2;hpb=1af166179c3f28fa9943f7844e03032f3bdae7ea diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c index 7b63b45..709f0ff 100644 --- a/utils/mount/stropts.c +++ b/utils/mount/stropts.c @@ -628,8 +628,15 @@ static int nfs_try_mount(struct nfsmount_info *mi) if (linux_version_code() > MAKE_VERSION(2, 6, 31)) { errno = 0; result = nfs_try_mount_v4(mi); - if (errno != EPROTONOSUPPORT) - break; + if (errno != EPROTONOSUPPORT) { + /* + * To deal with legacy Linux servers that don't + * automatically export a pseudo root, retry + * ENOENT errors using version 3 + */ + if (errno != ENOENT) + break; + } } case 2: case 3: