From: Chuck Lever Date: Sat, 28 Jul 2007 21:49:33 +0000 (-0400) Subject: umount.nfs: make umount.nfs use UDP by default X-Git-Tag: nfs-utils-1-1-1~128 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=d32d65025276630e2f38bf8dc56eef630fcf09e7 umount.nfs: make umount.nfs use UDP by default mount.nfs currently uses UDP by default when calling a MNT server. Make umount.nfs do the same. Signed-off-by: Chuck Lever Signed-off-by: Neil Brown --- diff --git a/utils/mount/nfsumount.c b/utils/mount/nfsumount.c index ae2b2d2..a0fe78e 100644 --- a/utils/mount/nfsumount.c +++ b/utils/mount/nfsumount.c @@ -200,7 +200,6 @@ int _nfsumount(const char *spec, char *opts) pmap->pm_prog = MOUNTPROG; pmap->pm_vers = MOUNTVERS_NFSV3; - pmap->pm_prot = IPPROTO_TCP; if (opts && (p = strstr(opts, "mountprog=")) && isdigit(*(p+10))) pmap->pm_prog = atoi(p+10); if (opts && (p = strstr(opts, "mountport=")) && isdigit(*(p+10)))