mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
sd_uid_get_state: do not return -ENOENT if state is "offline" (#6302)
This commit is contained in:
parent
7635ab8e74
commit
4c4bc54697
@ -293,7 +293,7 @@ _public_ int sd_uid_get_state(uid_t uid, char**state) {
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (r < 0) {
|
else if (r < 0) {
|
||||||
free(s);
|
free(s);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user