Blame SOURCES/0029-autofs-return-ERR_OFFLINE-if-we-fail-to-get-informat.patch

bac598
From e50258da70b67ff1b0f928e2e7875bc2fa32dfde Mon Sep 17 00:00:00 2001
bac598
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
bac598
Date: Fri, 6 Mar 2020 13:12:46 +0100
bac598
Subject: [PATCH 14/18] autofs: return ERR_OFFLINE if we fail to get
bac598
 information from backend and cache is empty
bac598
bac598
Resolves:
bac598
https://github.com/SSSD/sssd/issues/3413
bac598
bac598
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
bac598
---
bac598
 .../common/cache_req/plugins/cache_req_autofs_entry_by_name.c   | 2 ++
bac598
 .../common/cache_req/plugins/cache_req_autofs_map_by_name.c     | 2 ++
bac598
 .../common/cache_req/plugins/cache_req_autofs_map_entries.c     | 2 ++
bac598
 3 files changed, 6 insertions(+)
bac598
bac598
diff --git a/src/responder/common/cache_req/plugins/cache_req_autofs_entry_by_name.c b/src/responder/common/cache_req/plugins/cache_req_autofs_entry_by_name.c
bac598
index cb674add6..55c9fc8b0 100644
bac598
--- a/src/responder/common/cache_req/plugins/cache_req_autofs_entry_by_name.c
bac598
+++ b/src/responder/common/cache_req/plugins/cache_req_autofs_entry_by_name.c
bac598
@@ -142,6 +142,8 @@ cache_req_autofs_entry_by_name_send(TALLOC_CTX *mem_ctx,
bac598
         return NULL;
bac598
     }
bac598
 
bac598
+    cache_req_data_set_propogate_offline_status(data, true);
bac598
+
bac598
     return cache_req_steal_data_and_send(mem_ctx, ev, rctx, ncache,
bac598
                                          cache_refresh_percent,
bac598
                                          CACHE_REQ_POSIX_DOM, domain,
bac598
diff --git a/src/responder/common/cache_req/plugins/cache_req_autofs_map_by_name.c b/src/responder/common/cache_req/plugins/cache_req_autofs_map_by_name.c
bac598
index 3c08eaf4f..823eb3595 100644
bac598
--- a/src/responder/common/cache_req/plugins/cache_req_autofs_map_by_name.c
bac598
+++ b/src/responder/common/cache_req/plugins/cache_req_autofs_map_by_name.c
bac598
@@ -136,6 +136,8 @@ cache_req_autofs_map_by_name_send(TALLOC_CTX *mem_ctx,
bac598
         return NULL;
bac598
     }
bac598
 
bac598
+    cache_req_data_set_propogate_offline_status(data, true);
bac598
+
bac598
     return cache_req_steal_data_and_send(mem_ctx, ev, rctx, ncache,
bac598
                                          cache_refresh_percent,
bac598
                                          CACHE_REQ_POSIX_DOM, domain,
bac598
diff --git a/src/responder/common/cache_req/plugins/cache_req_autofs_map_entries.c b/src/responder/common/cache_req/plugins/cache_req_autofs_map_entries.c
bac598
index 1b5645fa0..3e47b1321 100644
bac598
--- a/src/responder/common/cache_req/plugins/cache_req_autofs_map_entries.c
bac598
+++ b/src/responder/common/cache_req/plugins/cache_req_autofs_map_entries.c
bac598
@@ -168,6 +168,8 @@ cache_req_autofs_map_entries_send(TALLOC_CTX *mem_ctx,
bac598
         return NULL;
bac598
     }
bac598
 
bac598
+    cache_req_data_set_propogate_offline_status(data, true);
bac598
+
bac598
     return cache_req_steal_data_and_send(mem_ctx, ev, rctx, ncache,
bac598
                                          cache_refresh_percent,
bac598
                                          CACHE_REQ_POSIX_DOM, domain,
bac598
-- 
bac598
2.21.3
bac598