run: update dbus unique names check
authorAnita Zhang <the.anitazha@gmail.com>
Thu, 4 Mar 2021 01:25:40 +0000 (17:25 -0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 12 Mar 2021 16:35:57 +0000 (17:35 +0100)
commit4649b044d05f217bd756639161e6f7955a1c7f6b
treed278faf6803e8920c1073794fcf5b2a968c2f4f0
parentb29181eaa50a0fd9cefc4bcfbd0e6949038b65c9
run: update dbus unique names check

Some code in systemd-run checks that a bus's unique name must start with
`:1.`. However the dbus specification on unique connection names only specifies
that it must begin with a colon. And the freedesktop/dbus implementation allows
allows unique names to go up to `:INT_MAX.INT_MAX`. So update the
current check to only look for a colon at the beginning.

(cherry picked from commit 01584bf9e43db1dfb7ea4ba628f533b3066e81cc)
src/run/run.c