From bd04ddfc123625980e288dbef455e1170310b29a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 10 Mar 2008 15:20:36 -0400 Subject: [PATCH] Fixed a segfault in the mount.nfs command Signed-off-by: Steinar H. Gunderson Signed-off-by: Steve Dickson --- utils/mount/nfsmount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.39.5