diff options
author | Steinar H. Gunderson <sgunderson@bigfoot.com> | 2008-03-10 15:20:36 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2008-03-10 15:20:36 -0400 |
commit | bd04ddfc123625980e288dbef455e1170310b29a (patch) | |
tree | 68c5c222e946ea42e5904b1a5671ca130e586cd8 | |
parent | b587496ba83ac7da31a33a0e1fd533773f3240ce (diff) | |
download | nfs-utils-bd04ddfc123625980e288dbef455e1170310b29a.tar.gz nfs-utils-bd04ddfc123625980e288dbef455e1170310b29a.tar.xz nfs-utils-bd04ddfc123625980e288dbef455e1170310b29a.zip |
Fixed a segfault in the mount.nfs command
Signed-off-by: Steinar H. Gunderson <sgunderson@bigfoot.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | utils/mount/nfsmount.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |