Remove double fclose in bd_s390_dasd_online (#2045784)

This commit is contained in:
Vojtech Trefny 2022-01-26 08:46:11 +01:00
parent b2a2bc0a82
commit d558bbe585
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From c06dd957335053595e50f705c6a4d4e1caf15a9c Mon Sep 17 00:00:00 2001
From: Vojtech Trefny <vtrefny@redhat.com>
Date: Wed, 26 Jan 2022 08:33:19 +0100
Subject: [PATCH] s390: Remove double fclose in bd_s390_dasd_online (#2045784)
---
src/plugins/s390.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/plugins/s390.c b/src/plugins/s390.c
index ac12b049..fb0dc982 100644
--- a/src/plugins/s390.c
+++ b/src/plugins/s390.c
@@ -290,7 +290,6 @@ gboolean bd_s390_dasd_online (const gchar *dasd, GError **error) {
if (wrc == EOF) {
g_set_error (error, BD_S390_ERROR, BD_S390_ERROR_DEVICE,
"Could not set DASD device %s online", dasd);
- fclose(fd);
bd_utils_report_finished (progress_id, (*error)->message);
return FALSE;
}
--
2.33.1

View File

@ -125,11 +125,12 @@
Name: libblockdev
Version: 2.26
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A library for low-level manipulation with block devices
License: LGPLv2+
URL: https://github.com/storaged-project/libblockdev
Source0: https://github.com/storaged-project/libblockdev/releases/download/%{version}-%{release}/%{name}-%{version}.tar.gz
Patch0: 0001-s390-Remove-double-fclose-in-bd_s390_dasd_online-204.patch
BuildRequires: make
BuildRequires: glib2-devel
@ -677,6 +678,7 @@ A meta-package that pulls all the libblockdev plugins as dependencies.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%build
autoreconf -ivf
@ -980,6 +982,9 @@ find %{buildroot} -type f -name "*.la" | xargs %{__rm}
%files plugins-all
%changelog
* Wed Jan 26 2022 Vojtech Trefny <vtrefny@redhat.com> - 2.26-3
- Remove double fclose in bd_s390_dasd_online (#2045784)
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild