Blame SOURCES/autofs-5.0.8-fix-ipv6-libtirpc-getport-proto-not-set.patch

306fa1
autofs-5.0.8 - fix rpc_portmap_getport() proto not set
306fa1
306fa1
From: Ian Kent <raven@themaw.net>
306fa1
306fa1
Recent changes to fix libtirpc usage problems when getting a server
306fa1
exports list cause later server probing to fail.
306fa1
306fa1
When getting an exports list a new rpc client is always created for
306fa1
the query, which includes setting the protocol in the parameters
306fa1
structure. But when probing availability the client is reused where
306fa1
possible and the protocol is not set in the parameters structure in
306fa1
this case.
306fa1
306fa1
The rpc_portmap_getport() changes require that the protocol is set
306fa1
in oder to function.
306fa1
---
306fa1
 CHANGELOG      |    1 +
306fa1
 lib/rpc_subs.c |    2 ++
306fa1
 2 files changed, 3 insertions(+)
306fa1
306fa1
--- autofs-5.0.7.orig/CHANGELOG
306fa1
+++ autofs-5.0.7/CHANGELOG
306fa1
@@ -68,6 +68,7 @@
306fa1
 - improve timeout option description.
306fa1
 - fix fix ipv6 libtirpc getport.
306fa1
 - get_nfs_info() should query portmapper if port is not given.
306fa1
+- fix rpc_portmap_getport() proto not set.
306fa1
 
306fa1
 25/07/2012 autofs-5.0.7
306fa1
 =======================
306fa1
--- autofs-5.0.7.orig/lib/rpc_subs.c
306fa1
+++ autofs-5.0.7/lib/rpc_subs.c
306fa1
@@ -877,6 +877,8 @@ int rpc_portmap_getport(struct conn_info
306fa1
 
306fa1
 	memset(&pmap_info, 0, sizeof(struct conn_info));
306fa1
 
306fa1
+	pmap_info.proto = proto;
306fa1
+
306fa1
 	if (proto == IPPROTO_TCP)
306fa1
 		pmap_info.timeout.tv_sec = PMAP_TOUT_TCP;
306fa1
 	else