diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-12-14 16:36:00 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-12-15 18:01:23 +0100 |
commit | 1ecb46724cae151606bc825f0e39f14d4dfe1a0e (patch) | |
tree | b2789d3f88e09a0c741f6439153abb086be45868 /src/journal | |
parent | cedfd142dea105b37223ad24d784494bfae83dc5 (diff) | |
download | systemd-1ecb46724cae151606bc825f0e39f14d4dfe1a0e.tar.gz |
bus-util: improve logging when we can't connect to the bus
Previously, we'd already have explicit logging for the case where
$XDG_RUNTIME_DIR is not set. Let's also add some explicit logging for
the EPERM/ACCESS case. Let's also in both cases suggest the
--machine=<user>@.host syntax.
And while we are at it, let's remove side-effects from the macro.
By checking for both the EPERM/EACCES case and the $XDG_RUNTIME_DIR case
we will now catch both the cases where people use "su" to issue a
"systemctl --user" operation, and those where they (more correctly, but
still not good enough) call "su -".
Fixes: #17901
Diffstat (limited to 'src/journal')
0 files changed, 0 insertions, 0 deletions