]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: add custom return code when $XDG_RUNTIME_DIR is not set 17344/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 14 Oct 2020 10:15:58 +0000 (12:15 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 14 Oct 2020 16:28:30 +0000 (18:28 +0200)
commitab4a88eb920e2f64a79a60c1ea9aecb7907a9635
treea6e19b63960b0ec77ee06159e22a57dda28d45e7
parent165fee860a384b2e1ea4317551bc4463b3d53b61
sd-bus: add custom return code when $XDG_RUNTIME_DIR is not set

We would return ENOENT, which is extremely confusing. Strace is not helpful because
no *file* is actually missing. So let's add some logs at debug level and also use
a custom return code. Let all user-facing utilities print a custom error message
in that case.
man/sd_bus_default.xml
src/busctl/busctl.c
src/home/homectl.c
src/libsystemd/sd-bus/sd-bus.c
src/libsystemd/sd-bus/test-bus-cleanup.c
src/libsystemd/sd-bus/test-bus-track.c
src/login/inhibit.c
src/portable/portablectl.c
src/shared/bus-util.h
src/systemctl/systemctl-util.c