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

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