Blame SOURCES/bz1471182-crypt-3-fix-missing-and.patch

3cbfd5
From 635c344fb85ef225b8a0c094687d2838b0b0cd2c Mon Sep 17 00:00:00 2001
3cbfd5
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
3cbfd5
Date: Mon, 26 Oct 2020 16:36:06 +0100
3cbfd5
Subject: [PATCH] crypt: fix missing && to set exit_reason
3cbfd5
3cbfd5
---
3cbfd5
 heartbeat/crypt | 2 +-
3cbfd5
 1 file changed, 1 insertion(+), 1 deletion(-)
3cbfd5
3cbfd5
diff --git a/heartbeat/crypt b/heartbeat/crypt
3cbfd5
index 2727b5b23..0e49b6c2d 100755
3cbfd5
--- a/heartbeat/crypt
3cbfd5
+++ b/heartbeat/crypt
3cbfd5
@@ -251,7 +251,7 @@ crypt_start() {
3cbfd5
 	else
3cbfd5
 		rc=$OCF_ERR_GERNERIC
3cbfd5
 	fi
3cbfd5
-	[ $rc -ne $OCF_SUCCESS ] ocf_exit_reason "Failed to start encrypted device \"$crypt_dev\""
3cbfd5
+	[ $rc -ne $OCF_SUCCESS ] && ocf_exit_reason "Failed to start encrypted device \"$crypt_dev\""
3cbfd5
 
3cbfd5
 	return $rc
3cbfd5
 }