diff --git a/SOURCES/0016-fix-file-permissions-nvme-print.c.patch b/SOURCES/0016-fix-file-permissions-nvme-print.c.patch new file mode 100644 index 0000000..0f4ef9d --- /dev/null +++ b/SOURCES/0016-fix-file-permissions-nvme-print.c.patch @@ -0,0 +1,19 @@ +From f9b6c2100db88e9f317f15f17faaed59b725ac9b Mon Sep 17 00:00:00 2001 +From: Keith Busch +Date: Tue, 24 Aug 2021 11:49:16 -0700 +Subject: [PATCH] fix file permissions (nvme-print.c) + +It's not executable. + +Signed-off-by: Keith Busch +--- + nvme-print.c | 0 + 1 file changed, 0 insertions(+), 0 deletions(-) + mode change 100755 => 100644 nvme-print.c + +diff --git a/nvme-print.c b/nvme-print.c +old mode 100755 +new mode 100644 +-- +2.31.1 + diff --git a/SPECS/nvme-cli.spec b/SPECS/nvme-cli.spec index b703824..0c89a67 100644 --- a/SPECS/nvme-cli.spec +++ b/SPECS/nvme-cli.spec @@ -3,7 +3,7 @@ Name: nvme-cli Version: 1.16 -Release: 5%{?dist} +Release: 7%{?dist} Summary: NVMe management command line interface License: GPLv2+ @@ -26,6 +26,7 @@ Patch12: 0012-nvme-cli-Adds-readable-firmware-level-in-persistent.patch Patch13: 0013-nvme-cli-Add-support-set-feature-event-in-PEL.patch Patch14: 0014-nvme-cli-Add-support-Telemetry-CRT-in-PEL.patch Patch15: 0015-fix-firmware-log-page-frs-variable-sign.patch +Patch16: 0016-fix-file-permissions-nvme-print.c.patch BuildRequires: libuuid-devel BuildRequires: gcc @@ -54,6 +55,7 @@ nvme-cli provides NVM-Express user space tooling for Linux. %patch13 -p1 %patch14 -p1 %patch15 -p1 +%patch16 -p1 %build @@ -103,13 +105,22 @@ if [ $1 -eq 1 ] || [ $1 -eq 2 ]; then fi # apply udev and systemd changes that we did - systemctl enable nvmefc-boot-connections + if [ $1 -eq 1 ]; then + systemctl enable nvmefc-boot-connections + fi systemctl daemon-reload udevadm control --reload-rules && udevadm trigger exit 0 fi %changelog +* Wed Nov 09 2022 Maurizio Lombardi - 1.16-7 +- Do not re-enable the nvmefc-boot-connections service if + we are just upgrading the package. + +* Thu Oct 13 2022 Maurizio Lombardi - 1.16-6 +- Fix a file permission + * Fri Jul 15 2022 Maurizio Lombardi - 1.16-5 - Fix a compiler warning