Blame SOURCES/0047-ssh-restore-default-debug-level.patch

bac598
From 2d26c95d78cf43798b54ac8c478b8a9ee41cab39 Mon Sep 17 00:00:00 2001
bac598
From: Sumit Bose <sbose@redhat.com>
bac598
Date: Wed, 3 Feb 2021 18:28:29 +0100
bac598
Subject: [PATCH] ssh: restore default debug level
bac598
bac598
The recent change of the default debug level for the main SSSD
bac598
components affected the ssh helpers sss_ssh_authorizedkeys and
bac598
sss_ssh_knownhostsproxy as well.
bac598
bac598
To avoid any confusion about unexpected debug messages this patch
bac598
restores to original value for the two helpers.
bac598
bac598
Resolves: https://github.com/SSSD/sssd/issues/5488
bac598
bac598
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
bac598
---
bac598
 src/sss_client/ssh/sss_ssh_authorizedkeys.c  | 2 +-
bac598
 src/sss_client/ssh/sss_ssh_knownhostsproxy.c | 2 +-
bac598
 2 files changed, 2 insertions(+), 2 deletions(-)
bac598
bac598
diff --git a/src/sss_client/ssh/sss_ssh_authorizedkeys.c b/src/sss_client/ssh/sss_ssh_authorizedkeys.c
bac598
index 8e80f9663..877c00299 100644
bac598
--- a/src/sss_client/ssh/sss_ssh_authorizedkeys.c
bac598
+++ b/src/sss_client/ssh/sss_ssh_authorizedkeys.c
bac598
@@ -32,7 +32,7 @@
bac598
 int main(int argc, const char **argv)
bac598
 {
bac598
     TALLOC_CTX *mem_ctx = NULL;
bac598
-    int pc_debug = SSSDBG_DEFAULT;
bac598
+    int pc_debug = SSSDBG_FATAL_FAILURE;
bac598
     const char *pc_domain = NULL;
bac598
     const char *pc_user = NULL;
bac598
     struct poptOption long_options[] = {
bac598
diff --git a/src/sss_client/ssh/sss_ssh_knownhostsproxy.c b/src/sss_client/ssh/sss_ssh_knownhostsproxy.c
bac598
index ad6af81d8..1102fd4ab 100644
bac598
--- a/src/sss_client/ssh/sss_ssh_knownhostsproxy.c
bac598
+++ b/src/sss_client/ssh/sss_ssh_knownhostsproxy.c
bac598
@@ -174,7 +174,7 @@ connect_proxy_command(char **args)
bac598
 int main(int argc, const char **argv)
bac598
 {
bac598
     TALLOC_CTX *mem_ctx = NULL;
bac598
-    int pc_debug = SSSDBG_DEFAULT;
bac598
+    int pc_debug = SSSDBG_FATAL_FAILURE;
bac598
     int pc_port = 22;
bac598
     const char *pc_domain = NULL;
bac598
     const char *pc_host = NULL;
bac598
-- 
bac598
2.21.3
bac598