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
This commit is contained in:
Gaurav 2020-12-04 16:45:15 +05:30 committed by Zbigniew Jędrzejewski-Szmek
parent 04b2224957
commit 17f8a21fd0
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}