Blame SOURCES/0005-Stop-sending-stderr-to-the-void-when-decryption-does.patch

9742fa
From da17589f0706b27690a11484165fd58dea1a5eb1 Mon Sep 17 00:00:00 2001
9742fa
From: Sergio Correia <scorreia@redhat.com>
9742fa
Date: Thu, 25 Nov 2021 19:18:03 -0300
9742fa
Subject: [PATCH 5/5] Stop sending stderr to the void when decryption doesn't
9742fa
 happen
9742fa
9742fa
---
9742fa
 src/luks/clevis-luks-common-functions | 2 +-
9742fa
 1 file changed, 1 insertion(+), 1 deletion(-)
9742fa
9742fa
diff --git a/src/luks/clevis-luks-common-functions b/src/luks/clevis-luks-common-functions
9742fa
index 879ca4c..df8e16d 100644
9742fa
--- a/src/luks/clevis-luks-common-functions
9742fa
+++ b/src/luks/clevis-luks-common-functions
9742fa
@@ -323,7 +323,7 @@ clevis_luks_unlock_device_by_slot() {
9742fa
         return 1
9742fa
     fi
9742fa
 
9742fa
-    if ! passphrase="$(printf '%s' "${jwe}" | clevis decrypt 2>/dev/null)" \
9742fa
+    if ! passphrase="$(printf '%s' "${jwe}" | clevis decrypt)" \
9742fa
                        || [ -z "${passphrase}" ]; then
9742fa
         return 1
9742fa
     fi
9742fa
-- 
9742fa
2.33.1
9742fa