Blame SOURCES/0005-CLIENT-MC-1-is-more-appropriate-initial-value-for-fd.patch

de2e0a
From 0eae0862069e4bbbdd87b809193fc873f3003cff Mon Sep 17 00:00:00 2001
de2e0a
From: Alexey Tikhonov <atikhono@redhat.com>
de2e0a
Date: Tue, 16 Aug 2022 21:48:43 +0200
de2e0a
Subject: [PATCH 5/6] CLIENT:MC: -1 is more appropriate initial value for fd
de2e0a
MIME-Version: 1.0
de2e0a
Content-Type: text/plain; charset=UTF-8
de2e0a
Content-Transfer-Encoding: 8bit
de2e0a
de2e0a
Reviewed-by: Sumit Bose <sbose@redhat.com>
de2e0a
Reviewed-by: Tomáš Halman <thalman@redhat.com>
de2e0a
(cherry picked from commit 579cc0b266d5f8954bc71cfcd3fe68002d681a5f)
de2e0a
---
de2e0a
 src/sss_client/nss_mc.h | 4 ++--
de2e0a
 1 file changed, 2 insertions(+), 2 deletions(-)
de2e0a
de2e0a
diff --git a/src/sss_client/nss_mc.h b/src/sss_client/nss_mc.h
de2e0a
index de1496ccc..0f88521e9 100644
de2e0a
--- a/src/sss_client/nss_mc.h
de2e0a
+++ b/src/sss_client/nss_mc.h
de2e0a
@@ -67,9 +67,9 @@ struct sss_cli_mc_ctx {
de2e0a
 };
de2e0a
 
de2e0a
 #if HAVE_PTHREAD
de2e0a
-#define SSS_CLI_MC_CTX_INITIALIZER(mtx) {UNINITIALIZED, (mtx), 1, 0, NULL, 0, NULL, 0, NULL, 0, 0}
de2e0a
+#define SSS_CLI_MC_CTX_INITIALIZER(mtx) {UNINITIALIZED, (mtx), -1, 0, NULL, 0, NULL, 0, NULL, 0, 0}
de2e0a
 #else
de2e0a
-#define SSS_CLI_MC_CTX_INITIALIZER {UNINITIALIZED, 1, 0, NULL, 0, NULL, 0, NULL, 0, 0}
de2e0a
+#define SSS_CLI_MC_CTX_INITIALIZER {UNINITIALIZED, -1, 0, NULL, 0, NULL, 0, NULL, 0, 0}
de2e0a
 #endif
de2e0a
 
de2e0a
 errno_t sss_nss_mc_get_ctx(const char *name, struct sss_cli_mc_ctx *ctx);
de2e0a
-- 
de2e0a
2.37.1
de2e0a