X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnfsmount.c;h=d1d43c661e41555eb7ea6aa0448f69e5c8ffefb4;hp=23dd2f607eafcbb739bc6d0e461dd28cb0666f79;hb=ab26cd622e1a5ef22be2df1f3176158b1505df30;hpb=4398901d336340f5bef59991d4cea77b2970f2fe diff --git a/utils/mount/nfsmount.c b/utils/mount/nfsmount.c index 23dd2f6..d1d43c6 100644 --- a/utils/mount/nfsmount.c +++ b/utils/mount/nfsmount.c @@ -35,6 +35,10 @@ * nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include @@ -714,7 +718,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 +852,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;