Blame SOURCES/bz2111668-1-Revert-Refactor-main-substitute-is_auth_req-macro.patch

cea3ae
From 35bf0b7b048d715f671eb68974fb6b4af6528c67 Mon Sep 17 00:00:00 2001
cea3ae
From: Jan Friesse <jfriesse@redhat.com>
cea3ae
Date: Mon, 4 Jul 2022 09:39:47 +0200
cea3ae
Subject: [PATCH] Revert "Refactor: main: substitute is_auth_req macro"
cea3ae
cea3ae
This reverts commit da79b8ba28ad4837a0fee13e5f8fb6f89fe0e24c.
cea3ae
cea3ae
authfile != authkey
cea3ae
cea3ae
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
cea3ae
---
cea3ae
 src/main.c | 2 +-
cea3ae
 1 file changed, 1 insertion(+), 1 deletion(-)
cea3ae
cea3ae
diff --git a/src/main.c b/src/main.c
cea3ae
index b50a883..b4a174f 100644
cea3ae
--- a/src/main.c
cea3ae
+++ b/src/main.c
cea3ae
@@ -364,7 +364,7 @@ static int setup_config(int type)
cea3ae
 	if (rv < 0)
cea3ae
 		goto out;
cea3ae
 
cea3ae
-	if (is_auth_req()) {
cea3ae
+	if (booth_conf->authfile[0] != '\0') {
cea3ae
 		rv = read_authkey();
cea3ae
 		if (rv < 0)
cea3ae
 			goto out;
cea3ae
-- 
cea3ae
2.37.1
cea3ae