Fix double fclose() call
This commit is contained in:
parent
f5adb36e3f
commit
4942530935
11
sblim-cmpi-base-1.6.1-double-fclose.patch
Normal file
11
sblim-cmpi-base-1.6.1-double-fclose.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -up sblim-cmpi-base-1.6.1/OSBase_OperatingSystemStatisticalData.c.orig sblim-cmpi-base-1.6.1/OSBase_OperatingSystemStatisticalData.c
|
||||
--- sblim-cmpi-base-1.6.1/OSBase_OperatingSystemStatisticalData.c.orig 2012-05-10 13:19:42.628416721 +0200
|
||||
+++ sblim-cmpi-base-1.6.1/OSBase_OperatingSystemStatisticalData.c 2012-05-10 13:20:38.331706857 +0200
|
||||
@@ -250,7 +250,6 @@ int get_cpu_queue_data_26(struct os_stat
|
||||
} else {
|
||||
_OSBASE_TRACE(1,("get_cpu_queue_data_26(): could not find cpu info"));
|
||||
}
|
||||
- fclose(f);
|
||||
} else {
|
||||
_OSBASE_TRACE(1,("get_cpu_queue_data_26(): could not open %s: %s",DATA_FILE,strerror(errno)));
|
||||
}
|
||||
@ -1,6 +1,6 @@
|
||||
Name: sblim-cmpi-base
|
||||
Version: 1.6.1
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: SBLIM CMPI Base Providers
|
||||
|
||||
Group: Applications/System
|
||||
@ -10,6 +10,7 @@ Source0: http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz
|
||||
Patch0: sblim-cmpi-base-1.6.0-missing-fclose.patch
|
||||
Patch1: sblim-cmpi-base-1.6.0-methods-enable.patch
|
||||
Patch2: sblim-cmpi-base-1.6.0-provider-register-sfcb-init.patch
|
||||
Patch3: sblim-cmpi-base-1.6.1-double-fclose.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Requires: cim-server sblim-indication_helper
|
||||
BuildRequires: sblim-cmpi-devel sblim-indication_helper-devel
|
||||
@ -43,9 +44,10 @@ Testcase Files for the SBLIM Testsuite.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0
|
||||
%patch1
|
||||
%patch0 -p0 -b .missing-fclose
|
||||
%patch1 -p0 -b .methods-enable
|
||||
%patch2 -p1 -b .provider-register-sfcb-init
|
||||
%patch3 -p1 -b .double-fclose
|
||||
|
||||
%build
|
||||
%configure TESTSUITEDIR=%{_datadir}/sblim-testsuite --disable-static
|
||||
@ -183,6 +185,10 @@ fi
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%changelog
|
||||
* Thu May 10 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.6.1-6
|
||||
- Fix double fclose() call (patch by Roman Rakus <rrakus@redhat.com>)
|
||||
Resolves: #820315
|
||||
|
||||
* Wed Feb 15 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.6.1-5
|
||||
- Enable indications and method providers
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user