Blame SOURCES/bz1471182-crypt-2-fix-bashism.patch

bcdf71
From 2915fa336e95b609d3d738d335799f015022c493 Mon Sep 17 00:00:00 2001
bcdf71
From: Valentin Vidic <vvidic@valentin-vidic.from.hr>
bcdf71
Date: Sat, 13 Jun 2020 08:47:36 +0200
bcdf71
Subject: [PATCH] crypt: fix bashism
bcdf71
bcdf71
---
bcdf71
 heartbeat/crypt | 2 +-
bcdf71
 1 file changed, 1 insertion(+), 1 deletion(-)
bcdf71
bcdf71
diff --git a/heartbeat/crypt b/heartbeat/crypt
bcdf71
index 8bfa1094d..2727b5b23 100755
bcdf71
--- a/heartbeat/crypt
bcdf71
+++ b/heartbeat/crypt
bcdf71
@@ -292,7 +292,7 @@ crypt_stop() {
bcdf71
 # Action: MONITOR an encrypted resource
bcdf71
 #
bcdf71
 crypt_monitor() {
bcdf71
-	cryptsetup status $crypt_dev $disable_locks &>/dev/null
bcdf71
+	cryptsetup status $crypt_dev $disable_locks >/dev/null 2>&1
bcdf71
 	if [ $? -eq 0 ]; then
bcdf71
 		[ -L $crypt_dev_path ] && return $OCF_SUCCESS
bcdf71
 		return $OCF_ERR_GENERIC