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