From 17f8a21fd069d7a3269496a59911c3b20fa1b324 Mon Sep 17 00:00:00 2001 From: Gaurav Date: Fri, 4 Dec 2020 16:45:15 +0530 Subject: [PATCH] Detect special character in dbus interface name Added debug log to detect special character in dbus interface names. Helps to detect a case mentioned in https://github.com/systemd/systemd/issues/14636 --- src/libsystemd/sd-bus/bus-internal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libsystemd/sd-bus/bus-internal.c b/src/libsystemd/sd-bus/bus-internal.c index 3f03ad7c41..c66056dcc4 100644 --- a/src/libsystemd/sd-bus/bus-internal.c +++ b/src/libsystemd/sd-bus/bus-internal.c @@ -91,8 +91,10 @@ bool interface_name_is_valid(const char *p) { (!dot && *q >= '0' && *q <= '9') || *q == '_'; - if (!good) + if (!good) { + log_debug("The interface %s is invalid as it contains special character %c", p, *q); return false; + } dot = false; }