Update to 1.9.5

Signed-off-by: Tony Asleson <tasleson@redhat.com>
This commit is contained in:
Tony Asleson 2022-10-17 14:09:11 -05:00
parent 5982badb03
commit 758f713680
4 changed files with 7 additions and 25 deletions

1
.gitignore vendored
View File

@ -42,3 +42,4 @@
/libstoragemgmt-1.9.2.tar.gz
/libstoragemgmt-1.9.3.tar.gz
/libstoragemgmt-1.9.4.tar.gz
/libstoragemgmt-1.9.5.tar.gz

View File

@ -1,21 +0,0 @@
diff --git a/c_binding/lsm_local_disk.c b/c_binding/lsm_local_disk.c
index 4e8277b..9e3e02e 100644
--- a/c_binding/lsm_local_disk.c
+++ b/c_binding/lsm_local_disk.c
@@ -1093,13 +1093,12 @@ static void _sysfs_sas_addr_get(const char *blk_name, char *tp_sas_addr) {
memset(sysfs_sas_addr, 0, _SYSFS_SAS_ADDR_LEN);
memset(tp_sas_addr, 0, _SG_T10_SPL_SAS_ADDR_LEN);
- sysfs_sas_path = (char *)malloc(sizeof(char) *
- (strlen("/sys/block//device/sas_address") +
- strlen(blk_name) + 1 /* trailing \0 */));
+ sysfs_sas_path = (char *)malloc(PATH_MAX);
if (sysfs_sas_path == NULL)
goto out;
- sprintf(sysfs_sas_path, "/sys/block/%s/device/sas_address", blk_name);
+ snprintf(sysfs_sas_path, PATH_MAX,
+ "/sys/block/%s/device/sas_address", blk_name);
if (!_file_exists(sysfs_sas_path))
goto out;

View File

@ -1,14 +1,13 @@
%bcond_with test
Name: libstoragemgmt
Version: 1.9.4
Release: 5%{?dist}
Version: 1.9.5
Release: 1%{?dist}
Summary: Storage array management library
License: LGPLv2+
URL: https://github.com/libstorage/libstoragemgmt
Source0: https://github.com/libstorage/libstoragemgmt/releases/download/%{version}/%{name}-%{version}.tar.gz
Patch1: 0001-change-run-dir.patch
Patch2: 0002-use-snprintf.patch
Requires: python3-%{name}%{_isa}
# Packages that have been removed
@ -446,6 +445,9 @@ fi
%{_mandir}/man1/local_lsmplugin.1*
%changelog
* Mon Oct 17 2022 Tony Asleson <tasleson@redhat.com> - 1.9.5-1
- Upgrade to 1.9.5
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (libstoragemgmt-1.9.4.tar.gz) = ad2ac4ddc6c6faeffb00916608aca1568a39599aba745217d554cf9164c0dc72fc2bb4932873c3fc09bc8cf3d9ce815c4286351bef145ea3a875e6320bba74a3
SHA512 (libstoragemgmt-1.9.5.tar.gz) = edb700916cf18948accdc1cd1e512be40ce59deb8b66b935d6900f84288f8456da5e67e7b75c6beae7c6c0169a5eb03847bb70b7acf1e5f5b764a753651fc41a