1
0
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:
Yu, Li-Yu 2017-07-08 17:59:29 -05:00 committed by Zbigniew Jędrzejewski-Szmek
parent 7635ab8e74
commit 4c4bc54697

View File

@ -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;
} }