Bug 84228 - sysfsutils: libsysfs write_attribute bug if attribute is empty
Bug#: 84228 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: gregkh@gentoo.org Reported By: linux@brodo.de
Component: Core system
URL: 
Summary: sysfsutils: libsysfs write_attribute bug if attribute is empty
Keywords:  InCVS
Status Whiteboard: 
Opened: 2005-03-05 13:41 0000
Description:   Opened: 2005-03-05 13:41 0000
The check in libsysfs::write_attribute() which tests whether the value to be
written into a sysfs attribute is already there should only trigger if the
length of both strings is the same. This patch, already accepted by upstream
for sysfsutils-1.4.0, is needed for pcmciautils to work correctly.


Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Dominik Brodowski 2005-03-05 13:42:39 0000 -------
Created an attachment (id=52742) [details]
patch for libsysfs-1.2.0

------- Comment #2 From Dominik Brodowski 2005-03-05 13:43:25 0000 -------
Created an attachment (id=52743) [details]
ebuild for sysfsutils-1.2.0-r1

------- Comment #3 From Henrik Brix Andersen 2005-05-15 01:52:09 0000 -------
Greg, can we get this patch merged into portage? It's the only issue holding
back the addition of pcmciautils to portage (bug #84234).

If you want, I can add the patch and do the revision bump of sysfsutils.

------- Comment #4 From Greg Kroah-Hartman 2005-05-16 20:57:06 0000 -------
Sorry, feel free to do it yourself, haven't had much gentoo specific time
lately :(

------- Comment #5 From Henrik Brix Andersen 2005-05-20 05:54:33 0000 -------
Added write_attribute() patch to sys-fs/sysfsutils-1.2.0-r1. Thanks.