run: update checks to allow running with a user's bus
authorAnita Zhang <the.anitazha@gmail.com>
Thu, 13 May 2021 08:17:51 +0000 (01:17 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 15 May 2021 17:54:55 +0000 (19:54 +0200)
commit2a1d508107c6d9c37c7867c08b15ccb01d3ee0bd
treef1cadce42b5bff7872e4ea186c48ea417d7bcfbb
parented1d8c83c81502437943f6a6588e56813f6b0b75
run: update checks to allow running with a user's bus

systemd-run is documented to as being able to connect and run on a
specific user bus with "--user --machine=lennart@.host" arguments.
This PR updates some logic that prevented this from working.

(cherry picked from commit cbdc29492097e24ef3320280bc2a8dedbce02d9a)
(cherry picked from commit cc589cce9815cabb0bed6d0695ec3ff77beebd06)
src/run/run.c