chiark / gitweb /
loginctl: enable-linger does not need fallback to XDG_SESSION_ID
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Mon, 18 Sep 2017 17:04:59 +0000 (18:04 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 18 Sep 2017 17:04:59 +0000 (18:04 +0100)
commit8f22b5738389cad3a9f3f054205ad0fedbda5b09
tree6adbec4b6d72c3bce981632ca8ca420d5a56ea45
parent813ee46c0ec85d7d93687b3660a4f4885c43ceae
loginctl: enable-linger does not need fallback to XDG_SESSION_ID

To maintain consistency with `loginctl user-status`, drop the fallback to
XDG_SESSION_ID for `loginctl enable-linger`.  The fallback was unnecessary
and also incorrect: it passed the numeric value of the session identifier
as a UID value.
src/login/loginctl.c