Blame SOURCES/bz1668357-fence_virt-dont-report-success-incorrect-parameter.patch

47a836
From 83e507cd236c304ce6b95b2ba52d3894f8002dc8 Mon Sep 17 00:00:00 2001
47a836
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
47a836
Date: Fri, 9 Nov 2018 13:10:29 +0100
47a836
Subject: [PATCH] fence_virt: dont report success for incorrect parameters
47a836
47a836
---
47a836
 client/main.c    | 2 +-
47a836
 client/options.c | 1 +
47a836
 2 files changed, 2 insertions(+), 1 deletion(-)
47a836
47a836
diff --git a/client/main.c b/client/main.c
47a836
index 8e94093..a3135e3 100644
47a836
--- a/client/main.c
47a836
+++ b/client/main.c
47a836
@@ -112,7 +112,7 @@ main(int argc, char **argv)
47a836
 		args.mode = MODE_VSOCK;
47a836
 
47a836
 	if (args.flags & F_ERR) {
47a836
-        if (args.op != FENCE_VALIDATEALL)
47a836
+		if (args.op != FENCE_VALIDATEALL)
47a836
 			args_usage(argv[0], my_options, (argc == 1));
47a836
 		exit(1);
47a836
 	}
47a836
diff --git a/client/options.c b/client/options.c
47a836
index a3f321b..4b5ed56 100644
47a836
--- a/client/options.c
47a836
+++ b/client/options.c
47a836
@@ -904,6 +904,7 @@ args_get_stdin(const char *optstr, fence_virt_args_t *args)
47a836
 				"parse warning: "
47a836
 				"illegal variable '%s' on line %d\n", name,
47a836
 				line);
47a836
+			args->flags |= F_ERR;
47a836
 			continue;
47a836
 		}
47a836