summaryrefslogtreecommitdiff
path: root/src/mount
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-02-21 04:34:37 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-02-21 04:40:23 +0900
commit1f22fc38280e5accea4c9f7e0276cdaced539324 (patch)
tree9f53a536462c175f63ac57588898aa2e5e4f041d /src/mount
parent9520c2f62b76fbbf31078f3ca9e4ede1ef23ff9d (diff)
downloadsystemd-1f22fc38280e5accea4c9f7e0276cdaced539324.tar.gz
mount-tool: sd_device_get_sysattr_value() returns 0 on success
Diffstat (limited to 'src/mount')
-rw-r--r--src/mount/mount-tool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c
index c1be0e0afb..153f67f93b 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)