chiark / gitweb /
sd-login: treat missing /run/elogind/{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)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:52 +0000 (09:46 +0200)
commit18b9ec874ae92e1b9b7daf91eee8b378a314f92a
treeeedf1befe77e7c29086e667e354d1de77ae83fe9
parent231def7c2f9c57a056ae6ced739db708ca6fea19
sd-login: treat missing /run/elogind/{seats,sessions,users} the same as empty

C.f. 0543105b0fb13e4243b71a78f62f81fb9dde5d51.
This makes if /run/elogind/{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/libelogind/sd-login/sd-login.c