diff options
author | Yu, Li-Yu <afg984@gmail.com> | 2017-07-09 00:59:29 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-07-09 00:59:29 +0200 |
commit | 4c4bc54697d8dc425a90c22cd725da5852e18022 (patch) | |
tree | a71b23d1365794232cff467572683a1d29b4a286 | |
parent | time-util: make parse_timestamp() set 0 if the input is very old date (#6297) (diff) | |
download | systemd-4c4bc54697d8dc425a90c22cd725da5852e18022.tar.xz systemd-4c4bc54697d8dc425a90c22cd725da5852e18022.zip |
sd_uid_get_state: do not return -ENOENT if state is "offline" (#6302)
-rw-r--r-- | src/libsystemd/sd-login/sd-login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-login/sd-login.c b/src/libsystemd/sd-login/sd-login.c index b75acef82c..22b90bd1b0 100644 --- a/src/libsystemd/sd-login/sd-login.c +++ b/src/libsystemd/sd-login/sd-login.c @@ -293,7 +293,7 @@ _public_ int sd_uid_get_state(uid_t uid, char**state) { return -ENOMEM; } - if (r < 0) { + else if (r < 0) { free(s); return r; } |