multipathd: document return values for check_path()

check_path() should return '1' if the path has been checked,
and '0' otherwise. So fixup missing return values and document
it properly.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Make 'multipath -t' able to run as normal user

'multipath -t' should be run as normal user, as we might be
needing it to update the default configuration.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath: remove 'remove_trailing_chars'

Unused; superseded by strchop().

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath: simplify basenamecpy()

strlcpy() already does a strlen() at the end, so no need
to call it explicitly.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath: Fix overflow in sysfs_get_str()

sysfs_get_str() should first do a strchop() before comparing the
returned string length with the provided buffer. Otherwise we might
incur a false positive as the overflowing bits might be occupied
by spaces, which will be removed later on.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Bump release version to 0.5.0