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

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