X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=utils%2Fmount%2Fnfsmount.c;h=f2e0e009658ab8ac90a990a376862570d7c6edb0;hb=bd04ddfc123625980e288dbef455e1170310b29a;hp=3d2ebb1066137a2733fe4616c36d097b821e3092;hpb=0f3172012919d36e2a7e5bf46c388f8c028fc93e;p=nfs-utils.git diff --git a/utils/mount/nfsmount.c b/utils/mount/nfsmount.c index 3d2ebb1..f2e0e00 100644 --- a/utils/mount/nfsmount.c +++ b/utils/mount/nfsmount.c @@ -714,7 +714,7 @@ nfsmount(const char *spec, const char *node, int flags, rpc_mount_errors(*nfs_server.hostname, 1, bg); } - if (nfs_pmap->pm_vers == 2) { + if (mnt_pmap->pm_vers <= 2) { if (mntres.nfsv2.fhs_status != 0) { nfs_error(_("%s: %s:%s failed, reason given by server: %s"), progname, hostname, dirname,