On 12/18/25 13:35, Ján Tomko wrote:
On a Tuesday in 2025, Michal Privoznik via Devel wrote:
From: Michal Privoznik <mprivozn@redhat.com>
According to [1] there are only few characters allowed in the path to the daemon socket (alphanum and some punctuation; notably, space is missing on the list). The rest must be escaped by '%NN' notation. Fortunately, g_uri_escape_string() with some carefully selected input values is able to escape the path.
Almost - it considers tilde valid but DBus doesn't. Well, let's hope nobody has tilde in domain name.
https://www.rfc-editor.org/rfc/rfc3986.html#appendix-A Well, g_uri_escape_string does what it says: unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
Whether dbus is wrong or not, libvirt should escape the tilde too.
Okay, I'll try to fix that in v2. But honestly, I think this is so narrow corner case that it feels almost useless work. Michal