From e751994b7ee6e63d1febc56d00456951e49ce06b Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Thu, 13 Sep 2012 11:52:05 -0400 Subject: [PATCH] Strip trailing white-space from md/sync_action sysfs attr Signed-off-by: David Zeuthen --- src/udiskslinuxmdraid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/udiskslinuxmdraid.c b/src/udiskslinuxmdraid.c index 6169205..85ace3f 100644 --- a/src/udiskslinuxmdraid.c +++ b/src/udiskslinuxmdraid.c @@ -215,6 +215,7 @@ udisks_linux_mdraid_update (UDisksLinuxMDRaid *mdraid, /* Can't use GUdevDevice methods as they cache the result and these variables vary */ degraded = read_sysfs_attr_as_int (raid_device, "md/degraded"); sync_action = read_sysfs_attr (raid_device, "md/sync_action"); + g_strstrip (sync_action); } udisks_mdraid_set_degraded (iface, degraded); udisks_mdraid_set_sync_action (iface, sync_action); -- 2.7.4