sd-login: fix return value of sd_pid_get_session
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 May 2017 01:55:44 +0000 (21:55 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 May 2017 01:59:59 +0000 (21:59 -0400)
commit19d64d10c049e5cffefff97e4c01fa3b69c2059b
treeb3a4afc4d9f8bbf76fa0628325fb895d15b14c22
parentcc6182e8540a348c664bcbb4af85701ddc36e5a6
sd-login: fix return value of sd_pid_get_session

We'd return -ENXIO, even thoug -ENODATA is documented.
src/libsystemd/sd-login/sd-login.c