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:
parent
9520c2f62b
commit
1f22fc3828
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user