aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2014-08-16 14:56:11 +0000
committerPeter Wemm <peter@FreeBSD.org>2014-08-16 14:56:11 +0000
commit1b31334c642989da54f30f5647080d51cd7c81c2 (patch)
tree10df76db05b667d79154bfc075b79efc364e35ad /sbin
parenta5b6123ea9425ac4094aa6c2a176c1d436543e5e (diff)
downloadsrc-1b31334c642989da54f30f5647080d51cd7c81c2.tar.gz
src-1b31334c642989da54f30f5647080d51cd7c81c2.zip
Use mount protocol version 3 by default for showmount and umount.
mount_nfs effectively uses mount protocol v3 by default already. v1 mount protocol is being removed along with nfsv2 by a high profile NFS appliance vendor and our legacy v1 mount protocol usage causes rpc errors.
Notes
Notes: svn path=/head/; revision=270062
Diffstat (limited to 'sbin')
-rw-r--r--sbin/umount/umount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/umount/umount.c b/sbin/umount/umount.c
index f2e02f26dccf..521bbc890b64 100644
--- a/sbin/umount/umount.c
+++ b/sbin/umount/umount.c
@@ -394,7 +394,7 @@ umountfs(struct statfs *sfs)
* has been unmounted.
*/
if (ai != NULL && !(fflag & MNT_FORCE) && do_rpc) {
- clp = clnt_create(hostp, MOUNTPROG, MOUNTVERS, "udp");
+ clp = clnt_create(hostp, MOUNTPROG, MOUNTVERS3, "udp");
if (clp == NULL) {
warnx("%s: %s", hostp,
clnt_spcreateerror("MOUNTPROG"));