don't forget to close pci.ids directory

This commit is contained in:
Michal Hlavinka 2011-03-17 13:31:53 +01:00
parent 9bcf5b738c
commit 93070680f3
2 changed files with 6 additions and 2 deletions

View File

@ -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; 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->id_file_name = name;
a->free_id_name = to_be_freed; 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); + }while (dp != NULL);
+ closedir(pci_ids_dir);
+ return 1; + return 1;
+} +}
diff -up pciutils-3.0.0/lib/pci.h.dird pciutils-3.0.0/lib/pci.h diff -up pciutils-3.0.0/lib/pci.h.dird pciutils-3.0.0/lib/pci.h

View File

@ -1,6 +1,6 @@
Name: pciutils Name: pciutils
Version: 3.1.7 Version: 3.1.7
Release: 5%{?dist} Release: 6%{?dist}
Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz
Source1: multilibconfigh Source1: multilibconfigh
@ -134,6 +134,9 @@ install -p lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Thu Mar 17 2011 Michal Hlavinka <mhlavink@redhat.com> - 3.1.7-6
- don't forget to close pci.ids directory
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.7-5 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild