]> git.neil.brown.name Git - nfs-utils.git/commit
probe_port should not try other versions in a version was explicitly given.
authorNeil Brown <neilb@suse.de>
Thu, 1 Nov 2007 05:04:59 +0000 (16:04 +1100)
committerNeil Brown <neilb@suse.de>
Thu, 1 Nov 2007 05:04:59 +0000 (16:04 +1100)
commit5405f58c7803f451c1d529623245062263501738
tree9a493c8cd6542d013d9d06bc88117befabf97c31
parentbe806a06d414603e0930c61d1576d47f46ff064c
probe_port should not try other versions in a version was explicitly given.

Currently if probe port is asked to probe for a specific version, and
that version is not supported, it will probe other versions too.
This means that if mountd is run with "--no-nfs-version 3",
It will first probe for NFS version 3, which will succeed (assuming the
kernel supported NFSv3), then it will check the matching mountd version (3)
and probe_port on discovering that isn't supported will try other versions,
find "1" is supported will succeed.

This leaves up using mount version 1 for an NFSv3 mount, which doesn't work
and leads to a SIGSEGV

There is no case where trying other versions is needed the request one is
not supported, so simply remove that code.
utils/mount/network.c