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

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