aboutsummaryrefslogtreecommitdiff
path: root/sysutils/sg3_utils/files/patch-src_sg__wr__mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/sg3_utils/files/patch-src_sg__wr__mode.c')
-rw-r--r--sysutils/sg3_utils/files/patch-src_sg__wr__mode.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/sysutils/sg3_utils/files/patch-src_sg__wr__mode.c b/sysutils/sg3_utils/files/patch-src_sg__wr__mode.c
deleted file mode 100644
index e9e1c7c2c7cb..000000000000
--- a/sysutils/sg3_utils/files/patch-src_sg__wr__mode.c
+++ /dev/null
@@ -1,28 +0,0 @@
---- src/sg_wr_mode.c.orig 2023-06-24 02:05:48 UTC
-+++ src/sg_wr_mode.c
-@@ -374,17 +374,23 @@ main(int argc, char * argv[])
- }
- }
- if (cfile_arg || contents_arg) {
-+ const char * inp = (cfile_arg ? cfile_arg : contents_arg);
-+
- if (cfile_arg && contents_arg) {
- pr2serr("Cannot have both --contents= and --cfile= options\n");
- return SG_LIB_SYNTAX_ERROR;
- }
- memset(read_in, 0, read_in_sz);
-- if ((ret = build_mode_page(optarg, !! cfile_arg, do_raw, read_in,
-- &read_in_len, read_in_sz))) {
-+ if ((ret = build_mode_page(inp, !! cfile_arg, do_raw,
-+ read_in, &read_in_len, read_in_sz))) {
- pr2serr("bad argument to '%s'\n", cfile_arg ? "--cfile=" :
- "--contents=");
- return ret;
- }
-+ if (verbose > 5) {
-+ pr2serr("Decoded contents:\n");
-+ hex2stderr(read_in, read_in_len, 1);
-+ }
- got_contents = true;
- }
-