]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Fixed a segfault in the mount.nfs command
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 10 Mar 2008 19:20:36 +0000 (15:20 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 10 Mar 2008 19:20:36 +0000 (15:20 -0400)
Signed-off-by: Steinar H. Gunderson <sgunderson@bigfoot.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/nfsmount.c

index 3d2ebb1066137a2733fe4616c36d097b821e3092..f2e0e009658ab8ac90a990a376862570d7c6edb0 100644 (file)
@@ -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,