From 7762303515d61fa2e94768e4e81db7d78a42ee08 Mon Sep 17 00:00:00 2001 From: Packit Date: Aug 20 2020 14:27:34 +0000 Subject: Apply patch sg_raw-version.patch patch_name: sg_raw-version.patch location_in_specfile: 3 present_in_specfile: true --- diff --git a/src/sg_raw.c b/src/sg_raw.c index 90c3d9c..64b8574 100644 --- a/src/sg_raw.c +++ b/src/sg_raw.c @@ -438,6 +438,13 @@ parse_cmd_line(struct opts_t * op, int argc, char *argv[]) } } + if (op->version_given +#ifdef DEBUG + && ! op->verbose_given +#endif + ) + return 0; + if (optind >= argc) { pr2serr("No device specified\n\n"); return SG_LIB_SYNTAX_ERROR;