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

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