-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unit names with _{a-f}{a-f} in them cause dbus to crash #49
Conversation
WTF |
Looks like it, those rules aren't sufficient. Still bizarre that dbus gets DOSed |
Yeah, I remember this rabbit hole now. Sorry for not handling it fully in the first place.
|
Doesn't this just need to escape the escape character? path = strings.Replace(path, "_", "_5f", -1) |
That'll fix the immediate issue but it's probably better to escape everything that systemd does so we don't just end up here again |
Yeah, we need to mimic systemctl exactly to avoid this sort of issue. |
ping |
lgtm, thank you! |
unit names with _{a-f}{a-f} in them cause dbus to crash
Fun and profit.
go program to reproduce:
script to test cases:
results: