From 088d1d6d00744112d81f23fa859b1344e19a3c9d Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 15 Nov 2022 02:04:41 -0500 Subject: [PATCH] import sg3_utils-1.47-9.el9 --- ...x-missing-newline-in-the-svpd_decode.patch | 25 +++++++++++++++++++ SPECS/sg3_utils.spec | 8 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 SOURCES/sg3_utils-1.48-sg_vpd_vendor-Fix-missing-newline-in-the-svpd_decode.patch diff --git a/SOURCES/sg3_utils-1.48-sg_vpd_vendor-Fix-missing-newline-in-the-svpd_decode.patch b/SOURCES/sg3_utils-1.48-sg_vpd_vendor-Fix-missing-newline-in-the-svpd_decode.patch new file mode 100644 index 0000000..1a84ae1 --- /dev/null +++ b/SOURCES/sg3_utils-1.48-sg_vpd_vendor-Fix-missing-newline-in-the-svpd_decode.patch @@ -0,0 +1,25 @@ +From d8d16e8d7b520e7d00003f57ae78233d993cf781 Mon Sep 17 00:00:00 2001 +From: Tomas Bzatek +Date: Wed, 8 Jun 2022 16:55:19 +0200 +Subject: [PATCH] sg_vpd_vendor: Fix missing newline in the + svpd_decode_vendor() error path + +--- + src/sg_vpd_vendor.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/sg_vpd_vendor.c b/src/sg_vpd_vendor.c +index 4f3b25e..e0d57fc 100644 +--- a/src/sg_vpd_vendor.c ++++ b/src/sg_vpd_vendor.c +@@ -1557,6 +1557,6 @@ svpd_decode_vendor(int sg_fd, struct opts_t * op, int off) + return 0; + } + } else +- pr2serr("Vendor VPD page=0x%x failed to fetch", op->vpd_pn); ++ pr2serr("Vendor VPD page=0x%x failed to fetch\n", op->vpd_pn); + return res; + } +-- +2.36.1 + diff --git a/SPECS/sg3_utils.spec b/SPECS/sg3_utils.spec index 30bb72e..f67fd12 100644 --- a/SPECS/sg3_utils.spec +++ b/SPECS/sg3_utils.spec @@ -4,7 +4,7 @@ Summary: Utilities for devices that use SCSI command sets Name: sg3_utils Version: 1.47 -Release: 8%{?dist} +Release: 9%{?dist} License: GPLv2+ and BSD URL: https://sg.danny.cz/sg/sg3_utils.html Source0: https://sg.danny.cz/sg/p/sg3_utils-%{version}.tar.xz @@ -27,6 +27,9 @@ Patch4: rescan-scsi-bus_sg_inq-parse.patch # https://bugzilla.redhat.com/show_bug.cgi?id=2052512 # rescan-scsi-bus.sh: Fix scanning progress output Patch5: sg3_utils-1.48-rescan-scsi-bus.sh_seq_-s.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=2073146 +# missing new line in sg_vpd output +Patch6: sg3_utils-1.48-sg_vpd_vendor-Fix-missing-newline-in-the-svpd_decode.patch Requires: %{name}-libs%{?_isa} = %{version}-%{release} BuildRequires: make @@ -123,6 +126,9 @@ install -p -m 755 scripts/fc_wwpn_id $RPM_BUILD_ROOT%{_udevlibdir} %changelog +* Wed Jun 15 2022 Tomas Bzatek - 1.47-9 +- Fix missing newline in sg_vpd output (#2073146) + * Fri Feb 11 2022 Tomas Bzatek - 1.47-8 - Fix scanning progress output (#2052512)