Blame SOURCES/0031-plugins-reporter-rhtsupport-Fix-command-line-parsing.patch

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