Blame SOURCES/sg_turs-help.patch

60e6aa
From 116e665ddb7b38bb8f7065ddb08192bd3551897d Mon Sep 17 00:00:00 2001
60e6aa
From: Tomas Bzatek <tbzatek@redhat.com>
60e6aa
Date: Tue, 26 Feb 2019 16:45:59 +0100
60e6aa
Subject: [PATCH] sg_turs: fix help invocation in the old mode
60e6aa
60e6aa
In the old mode the usage was printed out twice when called
60e6aa
by `sg_turs -O -?`.
60e6aa
---
60e6aa
 src/sg_turs.c | 2 +-
60e6aa
 1 file changed, 1 insertion(+), 1 deletion(-)
60e6aa
60e6aa
diff --git a/src/sg_turs.c b/src/sg_turs.c
60e6aa
index 8c6e3792..a318d22c 100644
60e6aa
--- a/src/sg_turs.c
60e6aa
+++ b/src/sg_turs.c
60e6aa
@@ -252,7 +252,7 @@ old_parse_cmd_line(struct opts_t * op, int argc, char * argv[])
60e6aa
                     op->version_given = true;
60e6aa
                     break;
60e6aa
                 case '?':
60e6aa
-                    usage_old();
60e6aa
+                    ++op->do_help;
60e6aa
                     return 0;
60e6aa
                 default:
60e6aa
                     jmp_out = true;