Blame SOURCES/sg_turs-help.patch

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