fixing bz 205808

This commit is contained in:
Neil Horman 2006-09-11 20:13:06 +00:00
parent 74857e5334
commit 9988cb74fe
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -puN lib/sysfs_class.c~sysfsutils_class_dup lib/sysfs_class.c
--- sysfsutils-2.1.0/lib/sysfs_class.c~sysfsutils_class_dup 2006-09-07 17:01:26.000000000 -0500
+++ sysfsutils-2.1.0-bjking1/lib/sysfs_class.c 2006-09-07 17:01:26.000000000 -0500
@@ -66,7 +66,7 @@ static int cdev_name_equal(void *a, void
return 0;
if (strncmp((char *)a, ((struct sysfs_class_device *)b)->name,
- strlen((char *)a)) == 0)
+ SYSFS_NAME_LEN) == 0)
return 1;
return 0;

View File

@ -1,9 +1,10 @@
Summary: sysfsutils, library interface to sysfs.
Name: sysfsutils
Version: 2.0.0
Release: 5
Release: 6
Source0: http://prdownloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
Patch0: %{name}-%{version}-redhatify.patch
Patch1: sysfsutils-2.0.0-class-dup.patch
License: GPL
Group: Development/Tools
Buildroot: %{_tmppath}/%{name}-root
@ -33,6 +34,7 @@ to build programs using the libsysfs API.
%prep
%setup -q
%patch0 -p1 -b .redhatify
%patch1 -p1
%build
%configure
@ -76,6 +78,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Sep 11 2006 Neil Horman <nhorman@redhat.com> - 2.0.0-6
- Integrate patch for bz 205808
* Mon Jul 17 2006 Jesse Keating <jkeating@redhat.com> - 2.0.0-5
- rebuild