Blame SOURCES/0002-Make-quiet-exit-on-missing-PK-KEK-not-return-error-s.patch

245cbb
From 946380463bb9a233381fc122a8374806d77b1778 Mon Sep 17 00:00:00 2001
245cbb
From: Peter Jones <pjones@redhat.com>
245cbb
Date: Mon, 23 Oct 2017 09:45:48 -0400
245cbb
Subject: [PATCH 2/2] Make quiet exit on missing PK/KEK not return error
245cbb
 status.
245cbb
245cbb
Signed-off-by: Peter Jones <pjones@redhat.com>
245cbb
---
245cbb
 src/dbxtool.c | 7 ++++---
245cbb
 1 file changed, 4 insertions(+), 3 deletions(-)
245cbb
245cbb
diff --git a/src/dbxtool.c b/src/dbxtool.c
245cbb
index 717c991..b2cb587 100644
245cbb
--- a/src/dbxtool.c
245cbb
+++ b/src/dbxtool.c
245cbb
@@ -541,13 +541,14 @@ check_pk_and_kek(bool force, bool quiet)
245cbb
 		}
245cbb
 	}
245cbb
 	if (!all_found) {
245cbb
-		if (!quiet) {
245cbb
+		if (quiet) {
245cbb
+			if (!force)
245cbb
+				exit(0);
245cbb
+		} else {
245cbb
 			if (!force)
245cbb
 				errx(1, "Not attempting to apply updates.");
245cbb
 			warnx("attempting to apply updates anyway.");
245cbb
 		}
245cbb
-		if (!force)
245cbb
-			exit(1);
245cbb
 	}
245cbb
 }
245cbb
 
245cbb
-- 
245cbb
2.14.2
245cbb