]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/rpcbind/rpcbind-0.2.3-tirpc_fix-1.patch
python3-msgpack: Fix build on i586
[people/pmueller/ipfire-2.x.git] / src / patches / rpcbind / rpcbind-0.2.3-tirpc_fix-1.patch
1 Submitted By: Bruce Dubbs <bdubbs_at_linuxfromscratch_dot_org>
2 Date: 2015-11-29
3 Initial Package Version: 0.2.3
4 Upstream Status: Already in upstream git repository
5 Origin: Upstream
6 Description: This patch fixes rpcbind to be able to build with
7 recent tirpc versions.
8
9 From 9194122389f2a56b1cd1f935e64307e2e963c2da Mon Sep 17 00:00:00 2001
10 From: Steve Dickson <steved@redhat.com>
11 Date: Mon, 2 Nov 2015 17:05:18 -0500
12 Subject: [PATCH] handle_reply: Don't use the xp_auth pointer directly
13
14 In the latest libtirpc version to access the xp_auth
15 one must use the SVC_XP_AUTH macro. To be backwards
16 compatible a couple ifdefs were added to use the
17 macro when it exists.
18
19 Signed-off-by: Steve Dickson <steved@redhat.com>
20 ---
21 src/rpcb_svc_com.c | 7 +++++++
22 1 file changed, 7 insertions(+)
23
24 diff --git a/src/rpcb_svc_com.c b/src/rpcb_svc_com.c
25 index 4ae93f1..22d6c84 100644
26 --- a/src/rpcb_svc_com.c
27 +++ b/src/rpcb_svc_com.c
28 @@ -1295,10 +1295,17 @@ handle_reply(int fd, SVCXPRT *xprt)
29 a.rmt_localvers = fi->versnum;
30
31 xprt_set_caller(xprt, fi);
32 +#if defined(SVC_XP_AUTH)
33 + SVC_XP_AUTH(xprt) = svc_auth_none;
34 +#else
35 xprt->xp_auth = &svc_auth_none;
36 +#endif
37 svc_sendreply(xprt, (xdrproc_t) xdr_rmtcall_result, (char *) &a);
38 +#if !defined(SVC_XP_AUTH)
39 SVCAUTH_DESTROY(xprt->xp_auth);
40 xprt->xp_auth = NULL;
41 +#endif
42 +
43 done:
44 if (buffer)
45 free(buffer);
46 --
47 1.8.2.1
48