summaryrefslogtreecommitdiffstats
path: root/sbin/umount
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2014-08-21 04:31:48 +0000
committerpeter <peter@FreeBSD.org>2014-08-21 04:31:48 +0000
commit644cd5de6d91256b5541170968a9f8ddcd2e6ee5 (patch)
treee46dd44edcbf301405070157cece7dba70556ac2 /sbin/umount
parent7d882e21ec1f53ab650df92feedfa9ef02d5f872 (diff)
downloadFreeBSD-src-644cd5de6d91256b5541170968a9f8ddcd2e6ee5.zip
FreeBSD-src-644cd5de6d91256b5541170968a9f8ddcd2e6ee5.tar.gz
MFC r270062: switch rpc mount protocol for showmount and umount from
mountv1 to mountv3 - it breaks by default on the new netapp release with the legacy protocols removed.
Diffstat (limited to 'sbin/umount')
-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 f2e02f2..521bbc8 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"));
OpenPOWER on IntegriCloud