[pciutils] don't forget to close pci.ids directory
Michal Hlavinka
mhlavink at fedoraproject.org
Thu Mar 17 12:32:09 UTC 2011
commit 93070680f3e1dd262bf617b0dbeb32ef6272e5c7
Author: Michal Hlavinka <mhlavink at redhat.com>
Date: Thu Mar 17 13:31:53 2011 +0100
don't forget to close pci.ids directory
pciutils-dir-d.patch | 3 ++-
pciutils.spec | 5 ++++-
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/pciutils-dir-d.patch b/pciutils-dir-d.patch
index 1885890..2fae8f1 100644
--- a/pciutils-dir-d.patch
+++ b/pciutils-dir-d.patch
@@ -50,7 +50,7 @@ diff -up pciutils-3.0.0/lib/names-parse.c.dird pciutils-3.0.0/lib/names-parse.c
return 1;
}
-@@ -249,3 +253,48 @@ pci_set_name_list_path(struct pci_access
+@@ -249,3 +253,49 @@ pci_set_name_list_path(struct pci_access
a->id_file_name = name;
a->free_id_name = to_be_freed;
}
@@ -97,6 +97,7 @@ diff -up pciutils-3.0.0/lib/names-parse.c.dird pciutils-3.0.0/lib/names-parse.c
+ }
+ }
+ }while (dp != NULL);
++ closedir(pci_ids_dir);
+ return 1;
+}
diff -up pciutils-3.0.0/lib/pci.h.dird pciutils-3.0.0/lib/pci.h
diff --git a/pciutils.spec b/pciutils.spec
index 65b046e..5c8c70c 100644
--- a/pciutils.spec
+++ b/pciutils.spec
@@ -1,6 +1,6 @@
Name: pciutils
Version: 3.1.7
-Release: 5%{?dist}
+Release: 6%{?dist}
Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz
Source1: multilibconfigh
@@ -134,6 +134,9 @@ install -p lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Mar 17 2011 Michal Hlavinka <mhlavink at redhat.com> - 3.1.7-6
+- don't forget to close pci.ids directory
+
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.1.7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the scm-commits
mailing list