]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/busctl/busctl.c
sd-bus: internalize setting of bus is_system/is_user
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 24 May 2020 11:04:24 +0000 (13:04 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 25 May 2020 09:09:21 +0000 (11:09 +0200)
commit062ac2ea85e466105c6aca4ea95e1d9a17422cea
treeaf62cde096b2401dabcee50b9a3c15ea8197da45
parent0406d1a843ba38334b8d4d9926cffd11ce4d5586
sd-bus: internalize setting of bus is_system/is_user

Each of bus_set_address_{user,system} had two users, and each of the two users
would set the internal flag manually. We should do that internally in the
functions instead.

While at it, only set the flag when setting the address is actually successful.
This doesn't change anything for current users, but it seems more correct.
src/busctl/busctl.c
src/libsystemd/sd-bus/sd-bus.c