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

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