priv-helper: fix D-Bus patch to not contain forbidden character '-'

"-" is not allowed as D-Bus path and interface name, and discouraged as
bus name. This cause nm-priv-helper to crash, because GDBus asserts the
the object path is valid.

Replace the '-' with '_'. This way, it's consistent with
"nm_dispatcher".

Fixes: d68ab6b8f0 ('nm-sudo: rename to nm-priv-helper')
This commit is contained in:
Thomas Haller
2022-02-08 16:43:22 +01:00
parent 3b67b7768d
commit 16a45d07ed
9 changed files with 22 additions and 21 deletions

View File

@@ -18,7 +18,7 @@ Description=NetworkManager Privileged Helper
[Service]
Type=dbus
BusName=org.freedesktop.nm-priv-helper
BusName=org.freedesktop.nm_priv_helper
ExecStart=@libexecdir@/nm-priv-helper
NotifyAccess=main
@@ -76,4 +76,4 @@ SystemCallFilter=@resources
[Install]
Alias=dbus-org.freedesktop.nm-priv-helper.service
Alias=dbus-org.freedesktop.nm_priv_helper.service