From: Steinar H. Gunderson Date: Mon, 10 Mar 2008 19:20:36 +0000 (-0400) Subject: Fixed a segfault in the mount.nfs command X-Git-Tag: nfs-utils-1-1-2~5 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=bd04ddfc123625980e288dbef455e1170310b29a;p=nfs-utils.git Fixed a segfault in the mount.nfs command Signed-off-by: Steinar H. Gunderson Signed-off-by: Steve Dickson --- 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,