From: Yu Watanabe Date: Sat, 20 Feb 2021 19:34:37 +0000 (+0900) Subject: mount-tool: sd_device_get_sysattr_value() returns 0 on success X-Git-Tag: v248-rc1~19^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F18684%2Fhead;p=thirdparty%2Fsystemd.git mount-tool: sd_device_get_sysattr_value() returns 0 on success --- 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)