]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
umount.nfs: Fix return value of nfs_mount_protocol() nfs-utils-1-1-6-rc7
authorChuck Lever <chuck.lever@oracle.com>
Sat, 18 Apr 2009 13:45:46 +0000 (09:45 -0400)
committerSteve Dickson <steved@redhat.com>
Sat, 18 Apr 2009 13:45:46 +0000 (09:45 -0400)
Fix a copy-paste error introduced in nfs_mount_protocol().  It should
return an IPPROTO_ number, not an NFS version number.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/network.c

index 234e7f3e344f11b1e61106483cfb5c4991eb12e3..72f4b845da4bf6f578eeb2cadd30fa0c31812621 100644 (file)
@@ -1337,7 +1337,7 @@ static unsigned short nfs_mount_protocol(struct mount_options *options)
                        return IPPROTO_UDP;
        }
 
-       return nfs_nfs_version(options);
+       return nfs_nfs_protocol(options);
 }
 
 /*