X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnfsmount.c;h=f2e0e009658ab8ac90a990a376862570d7c6edb0;hp=23dd2f607eafcbb739bc6d0e461dd28cb0666f79;hb=bd04ddfc123625980e288dbef455e1170310b29a;hpb=4398901d336340f5bef59991d4cea77b2970f2fe diff --git a/utils/mount/nfsmount.c b/utils/mount/nfsmount.c index 23dd2f6..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, @@ -848,7 +848,7 @@ noauth_flavors: if (!start_statd()) { nfs_error(_("%s: rpc.statd is not running but is " "required for remote locking.\n" - " Either use '-o nolocks' to keep " + " Either use '-o nolock' to keep " "locks local, or start statd."), progname); goto fail;