From 1f22fc38280e5accea4c9f7e0276cdaced539324 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 21 Feb 2021 04:34:37 +0900 Subject: [PATCH] mount-tool: sd_device_get_sysattr_value() returns 0 on success --- src/mount/mount-tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index c1be0e0afbe..153f67f93b3 100644 --- a/src/mount/mount-tool.c +++ b/src/mount/mount-tool.c @@ -1197,7 +1197,7 @@ static int acquire_removable(sd_device *d) { return 0; for (;;) { - if (sd_device_get_sysattr_value(d, "removable", &v) > 0) + if (sd_device_get_sysattr_value(d, "removable", &v) >= 0) break; if (sd_device_get_parent(d, &d) < 0) -- 2.47.3