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

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