summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteinar H. Gunderson <sgunderson@bigfoot.com>2008-03-10 15:20:36 -0400
committerSteve Dickson <steved@redhat.com>2008-03-10 15:20:36 -0400
commitbd04ddfc123625980e288dbef455e1170310b29a (patch)
tree68c5c222e946ea42e5904b1a5671ca130e586cd8
parentb587496ba83ac7da31a33a0e1fd533773f3240ce (diff)
downloadnfs-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.c2
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,