Fix sysfs_attr_get_value()
authorHannes Reinecke <hare@suse.de>
Wed, 7 Jan 2009 09:52:25 +0000 (10:52 +0100)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Tue, 21 Apr 2009 23:16:00 +0000 (01:16 +0200)
commitf62e32fe36930929ac1a84607b5229fddb96e3a4
treef35baf14e12a18d215c68e7e89a72bdefc650d4f
parent7d106736239d3093c021aec411b99c4442ed87c1
Fix sysfs_attr_get_value()

sysfs_attr_get_value() should return NULL if the attribute was not
found or found to be empty. And we should increase the attribute
value size to avoid overflows.
And overflows should be truncated, not ignored.

References: bnc#456747

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/structs.h
libmultipath/sysfs.c