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

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