logind: improve error propagation of user_check_linger_file()
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Aug 2018 14:03:11 +0000 (16:03 +0200)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Fri, 20 Aug 2021 11:06:37 +0000 (13:06 +0200)
commit117ed6bd7aa71fc79599e1d37bdb4a94b3505a38
treeb2e99baaf28004402280ae3b48ef782820fe83c3
parente9a187ea6abf1e7034ee3113355b282743a98f39
logind: improve error propagation of user_check_linger_file()

Let's make this a bit prettier, and propagate unexpected access() errors
correctly.

(The callers of this function will suppress them, but it's nicer of they
do that, rather than us doing that twice in both the callers and the
callees)

(cherry picked from commit 6996df9b864981980f5b713dc5c7d506a7a4b9bf)

Related: #1642460
src/login/logind-user.c