diff options
author | Koen Kooi <koen@openembedded.org> | 2005-06-30 08:19:37 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-06-30 08:19:37 +0000 |
commit | c8e5702127e507e82e6f68a4b8c546803accea9d (patch) | |
tree | 00583491f40ecc640f2b28452af995e3a63a09d7 /packages/sysfsutils | |
parent | 87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff) |
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/sysfsutils')
-rw-r--r-- | packages/sysfsutils/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/sysfsutils/sysfsutils-1.2.0/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/sysfsutils/sysfsutils-1.2.0/libsysfs-write-attribute.patch | 29 |
3 files changed, 29 insertions, 0 deletions
diff --git a/packages/sysfsutils/.mtn2git_empty b/packages/sysfsutils/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/sysfsutils/.mtn2git_empty diff --git a/packages/sysfsutils/sysfsutils-1.2.0/.mtn2git_empty b/packages/sysfsutils/sysfsutils-1.2.0/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/sysfsutils/sysfsutils-1.2.0/.mtn2git_empty diff --git a/packages/sysfsutils/sysfsutils-1.2.0/libsysfs-write-attribute.patch b/packages/sysfsutils/sysfsutils-1.2.0/libsysfs-write-attribute.patch index e69de29bb2..447d90f588 100644 --- a/packages/sysfsutils/sysfsutils-1.2.0/libsysfs-write-attribute.patch +++ b/packages/sysfsutils/sysfsutils-1.2.0/libsysfs-write-attribute.patch @@ -0,0 +1,29 @@ +Hi, + +int sysfs_write_attribute(struct sysfs_attribute *sysattr, + const char *new_value, size_t len) + +has a problematic "feature": if the file is empty but readable, nothing gets +written into it. The attached patch (untested) should fix it. + + Dominik + + +The check 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. + +Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> + +--- sysfsutils-1.2.0/lib/sysfs_dir.c.original 2005-02-21 08:10:33.000000000 +0100 ++++ sysfsutils-1.2.0/lib/sysfs_dir.c 2005-02-21 08:14:01.000000000 +0100 +@@ -194,7 +194,8 @@ + dprintf("Error reading attribute\n"); + return -1; + } +- if ((strncmp(sysattr->value, new_value, sysattr->len)) == 0) { ++ if (((strncmp(sysattr->value, new_value, sysattr->len)) == 0)&& ++ (len == sysattr->len)) { + dprintf("Attr %s already has the requested value %s\n", + sysattr->name, new_value); + return 0; |