Blame SOURCES/0031-plugins-reporter-rhtsupport-Fix-command-line-parsing.patch
|
|
99f8fd |
From aea02b3719a161a05dac815955cfa1bb630e8da4 Mon Sep 17 00:00:00 2001
|
|
|
99f8fd |
From: Ernestas Kulik <ekulik@redhat.com>
|
|
|
99f8fd |
Date: Fri, 24 Jul 2020 10:45:37 +0200
|
|
|
99f8fd |
Subject: [PATCH] plugins: reporter-rhtsupport: Fix command-line parsing
|
|
|
99f8fd |
|
|
|
99f8fd |
cb81dc0870949fbacaa6e2384e91fc4de4df43a5 drops -u and -C options, but
|
|
|
99f8fd |
does not remove them from the enumeration, which maps the options to the
|
|
|
99f8fd |
option struct, leading to -F and -D not being parsed.
|
|
|
99f8fd |
|
|
|
99f8fd |
https://bugzilla.redhat.com/show_bug.cgi?id=1860285
|
|
|
99f8fd |
---
|
|
|
99f8fd |
src/plugins/reporter-rhtsupport.c | 6 ++----
|
|
|
99f8fd |
1 file changed, 2 insertions(+), 4 deletions(-)
|
|
|
99f8fd |
|
|
|
99f8fd |
diff --git a/src/plugins/reporter-rhtsupport.c b/src/plugins/reporter-rhtsupport.c
|
|
|
99f8fd |
index 411bffc..7f5aafa 100644
|
|
|
99f8fd |
--- a/src/plugins/reporter-rhtsupport.c
|
|
|
99f8fd |
+++ b/src/plugins/reporter-rhtsupport.c
|
|
|
99f8fd |
@@ -404,10 +404,8 @@ int main(int argc, char **argv)
|
|
|
99f8fd |
OPT_c = 1 << 2,
|
|
|
99f8fd |
OPT_t = 1 << 3,
|
|
|
99f8fd |
OPT_f = 1 << 4,
|
|
|
99f8fd |
- OPT_u = 1 << 5,
|
|
|
99f8fd |
- OPT_C = 1 << 6,
|
|
|
99f8fd |
- OPT_F = 1 << 7,
|
|
|
99f8fd |
- OPT_D = 1 << 8,
|
|
|
99f8fd |
+ OPT_F = 1 << 5,
|
|
|
99f8fd |
+ OPT_D = 1 << 6,
|
|
|
99f8fd |
};
|
|
|
99f8fd |
/* Keep enum above and order of options below in sync! */
|
|
|
99f8fd |
struct options program_options[] = {
|
|
|
99f8fd |
--
|
|
|
99f8fd |
2.26.2
|
|
|
99f8fd |
|