sd-login: treat missing /run/systemd/{seats,sessions,users} the same as empty
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 31 May 2017 14:48:47 +0000 (23:48 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 31 May 2017 23:01:13 +0000 (19:01 -0400)
commit2b5e92673d9ed864bb9dad1a7e816f093b75f8cb
treea79ce845a3217b8388be516c4f57f8cde201c068
parentf00237563eb49c9370983161a41b5c2f09a3cb3e
sd-login: treat missing /run/systemd/{seats,sessions,users} the same as empty

C.f. 0543105b0fb13e4243b71a78f62f81fb9dde5d51.
This makes if /run/systemd/{seats,sessions,users} are missing, then
sd_get_seats(), sd_get_sessions() and sd_get_uids() return 0, that is,
an empty list, instead of -ENOENT.
src/libsystemd/sd-login/sd-login.c