1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

mount-tool: sd_device_get_sysattr_value() returns 0 on success

This commit is contained in:
Yu Watanabe 2021-02-21 04:34:37 +09:00
parent 9520c2f62b
commit 1f22fc3828

View File

@ -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)