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

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