Blame SOURCES/0001-lib-fix-profile-origin-debug-message.patch

1756dc
From 607235797f0503178f81b5a2074803fdddd84071 Mon Sep 17 00:00:00 2001
1756dc
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
1756dc
Date: Tue, 4 Sep 2018 12:33:21 +0200
1756dc
Subject: [PATCH 01/16] lib: fix profile origin debug message
1756dc
1756dc
Previously, we failed to match the location and always print that
1756dc
the selected profile is a default profile.
1756dc
---
1756dc
 src/lib/profiles/read.c | 4 ++--
1756dc
 1 file changed, 2 insertions(+), 2 deletions(-)
1756dc
1756dc
diff --git a/src/lib/profiles/read.c b/src/lib/profiles/read.c
1756dc
index 002329090cec29eee7969a5f04634ba1bb214a4c..a3a3e62788a3b3ae493a22a8b8e10170d572fc6f 100644
1756dc
--- a/src/lib/profiles/read.c
1756dc
+++ b/src/lib/profiles/read.c
1756dc
@@ -125,9 +125,9 @@ authselect_profile_open(const char *id,
1756dc
             return ret;
1756dc
         }
1756dc
 
1756dc
-        if (strcmp(location, DIR_CUSTOM_PROFILES) == 0) {
1756dc
+        if (strcmp(locations[i], DIR_CUSTOM_PROFILES) == 0) {
1756dc
             INFO("Profile [%s] is a custom profile", id);
1756dc
-        } else if (strcmp(location, DIR_VENDOR_PROFILES) == 0) {
1756dc
+        } else if (strcmp(locations[i], DIR_VENDOR_PROFILES) == 0) {
1756dc
             INFO("Profile [%s] is a vendor profile", id);
1756dc
         } else {
1756dc
             INFO("Profile [%s] is a default profile", id);
1756dc
-- 
1756dc
2.17.1
1756dc