Remove trailing linefeed from sysfs attributes
[multipath-tools/.git] / libmultipath / sysfs.c
index 0e05316..102135a 100644 (file)
@@ -93,6 +93,8 @@ ssize_t sysfs_attr_get_value(struct udev_device *dev, const char *attr_name,
        }
 
        close(fd);
+       if (size > 0)
+               size = strchop(value);
        return size;
 }