Blame SOURCES/bz1653700-2-build-fix-check_used_options.patch

bbedc2
From 267afc5caa0580cc483220e671cda094413a4e16 Mon Sep 17 00:00:00 2001
bbedc2
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
bbedc2
Date: Wed, 28 Nov 2018 09:54:16 +0100
bbedc2
Subject: [PATCH] build: fix if-redirection to make check_used_options run for
bbedc2
 the agents as intended
bbedc2
bbedc2
---
bbedc2
 make/fencebuild.mk | 2 +-
bbedc2
 1 file changed, 1 insertion(+), 1 deletion(-)
bbedc2
bbedc2
diff --git a/make/fencebuild.mk b/make/fencebuild.mk
bbedc2
index 9e8bd692..143082f0 100644
bbedc2
--- a/make/fencebuild.mk
bbedc2
+++ b/make/fencebuild.mk
bbedc2
@@ -33,7 +33,7 @@ define gen_agent_from_py
bbedc2
 		-e 's#@''PING4_CMD@#${PING4_CMD}#g' \
bbedc2
 	> $@
bbedc2
 
bbedc2
-	if [ 0 -eq `echo "$(@)" | grep fence_ 2>&1 /dev/null; echo $$?` ]; then \
bbedc2
+	if [ 0 -eq `echo "$(@)" | grep fence_ > /dev/null 2>&1; echo $$?` ]; then \
bbedc2
 		PYTHONPATH=$(abs_top_srcdir)/lib:$(abs_top_builddir)/lib $(PYTHON) $(top_srcdir)/lib/check_used_options.py $@; \
bbedc2
 	else true ; fi
bbedc2