Blame SOURCES/0034-Add-verbose-option-to-SCEP-CA-if-requested-in-add-sc.patch

5e5f7c
From e4d0a60836e1ecbcd6390b88dceb2ca29d3179dc Mon Sep 17 00:00:00 2001
5e5f7c
From: Rob Crittenden <rcritten@redhat.com>
5e5f7c
Date: Thu, 27 Feb 2020 18:15:02 -0500
5e5f7c
Subject: [PATCH 34/39] Add verbose option to SCEP CA if requested in
5e5f7c
 add-scep-ca
5e5f7c
5e5f7c
This option was silently dropped from the helper arguments even
5e5f7c
if requested on the add-scep-ca CLI and was only passed to the
5e5f7c
dbus helper.
5e5f7c
5e5f7c
Add as many -v as requested though the scep helper only logs at
5e5f7c
most at level 1.
5e5f7c
---
5e5f7c
 src/getcert.c | 3 +++
5e5f7c
 1 file changed, 3 insertions(+)
5e5f7c
5e5f7c
diff --git a/src/getcert.c b/src/getcert.c
5e5f7c
index 4713dd1..3d78a73 100644
5e5f7c
--- a/src/getcert.c
5e5f7c
+++ b/src/getcert.c
5e5f7c
@@ -4580,6 +4580,9 @@ add_scep_ca(const char *argv0, int argc, const char **argv)
5e5f7c
 				  certs ? "-I" : "",
5e5f7c
 				  certs ? shell_escape(globals.tctx, certs) : "",
5e5f7c
 				  prefer_non_renewal ? "-n" : "");
5e5f7c
+	for (c = 0; c < verbose; c++) {
5e5f7c
+		command = talloc_strdup_append(command, " -v");
5e5f7c
+	}
5e5f7c
 	if (command == NULL) {
5e5f7c
 		printf(_("Error building command line.\n"));
5e5f7c
 		exit(1);
5e5f7c
-- 
5e5f7c
2.21.1
5e5f7c