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:
@@ -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
|
||||
|
Reference in New Issue
Block a user