]> git.pld-linux.org Git - packages/sssd.git/blame - samba-4.12.patch
- fix building with samba 4.12
[packages/sssd.git] / samba-4.12.patch
CommitLineData
73564c79
JR
1From bc56b10aea999284458dcc293b54cf65288e325d Mon Sep 17 00:00:00 2001
2From: Stephen Gallagher <sgallagh@redhat.com>
3Date: Fri, 24 Jan 2020 15:17:39 +0100
4Subject: [PATCH] Fix build failure against samba 4.12.0rc1
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9The ndr_pull_get_switch() function was dropped, but it was just a wrapper
10around the ndr_token_peek() function, so we can use this approach on both
11old and new versions of libndr.
12
13Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
14
15Reviewed-by: Pavel Březina <pbrezina@redhat.com>
16---
17 src/providers/ad/ad_gpo_ndr.c | 6 +++---
18 1 file changed, 3 insertions(+), 3 deletions(-)
19
20diff --git a/src/providers/ad/ad_gpo_ndr.c b/src/providers/ad/ad_gpo_ndr.c
21index d57303349..8f405aa62 100644
22--- a/src/providers/ad/ad_gpo_ndr.c
23+++ b/src/providers/ad/ad_gpo_ndr.c
24@@ -105,7 +105,7 @@ ndr_pull_security_ace_object_type(struct ndr_pull *ndr,
25 union security_ace_object_type *r)
26 {
27 uint32_t level;
28- level = ndr_pull_get_switch_value(ndr, r);
29+ level = ndr_token_peek(&ndr->switch_list, r);
30 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
31 if (ndr_flags & NDR_SCALARS) {
32 NDR_CHECK(ndr_pull_union_align(ndr, 4));
33@@ -135,7 +135,7 @@ ndr_pull_security_ace_object_inherited_type(struct ndr_pull *ndr,
34 union security_ace_object_inherited_type *r)
35 {
36 uint32_t level;
37- level = ndr_pull_get_switch_value(ndr, r);
38+ level = ndr_token_peek(&ndr->switch_list, r);
39 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
40 if (ndr_flags & NDR_SCALARS) {
41 NDR_CHECK(ndr_pull_union_align(ndr, 4));
42@@ -198,7 +198,7 @@ ndr_pull_security_ace_object_ctr(struct ndr_pull *ndr,
43 union security_ace_object_ctr *r)
44 {
45 uint32_t level;
46- level = ndr_pull_get_switch_value(ndr, r);
47+ level = ndr_token_peek(&ndr->switch_list, r);
48 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
49 if (ndr_flags & NDR_SCALARS) {
50 NDR_CHECK(ndr_pull_union_align(ndr, 4));
51--
522.20.1
53
This page took 0.060247 seconds and 4 git commands to generate.