fixing bz 207404

This commit is contained in:
Neil Horman 2006-09-21 16:34:54 +00:00
parent dbef751cdc
commit a3be73aa2f
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- numactl-0.9.8/numactl-0.9.8/libnuma.c.orig 2006-09-21 12:26:52.000000000 -0400
+++ numactl-0.9.8/numactl-0.9.8/libnuma.c 2006-09-21 12:27:14.000000000 -0400
@@ -420,7 +420,7 @@ int numa_parse_bitmap(char *line, unsign
while (p > line && *p != ',')
--p;
/* Eat two 32bit fields at a time to get longs */
- if (sizeof(unsigned long) == 8) {
+ if (p > line && sizeof(unsigned long) == 8) {
oldp--;
memmove(p, p+1, oldp-p+1);
while (p > line && *p != ',')

View File

@ -11,6 +11,7 @@ Buildroot: %{_tmppath}/%{name}-buildroot
ExcludeArch: s390 s390x
Patch1: numactl-node-cpubind.patch
Patch2: numactl-parse_bitmap_nodebind.patch
%description
Simple NUMA policy support. It consists of a numactl program to run
@ -29,6 +30,7 @@ Provides development headers for numa library calls
%prep
%setup -q -c -a 0
%patch1
%patch2 -p1
%build
cd numactl-%{version}
@ -72,6 +74,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/*.3*
%changelog
* Thu Sep 21 2006 Neil Horman <nhorman@redhat.com> - 0.9.8-1.36
- adding nodebind patch for bz 207404
* Fri Aug 25 2006 Neil Horman <nhorman@redhat.com> - 0.9.8-1.35
- moving over libnuma.so to -devel package as well