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:
parent
04b2224957
commit
17f8a21fd0
|
@ -91,8 +91,10 @@ bool interface_name_is_valid(const char *p) {
|
||||||
(!dot && *q >= '0' && *q <= '9') ||
|
(!dot && *q >= '0' && *q <= '9') ||
|
||||||
*q == '_';
|
*q == '_';
|
||||||
|
|
||||||
if (!good)
|
if (!good) {
|
||||||
|
log_debug("The interface %s is invalid as it contains special character %c", p, *q);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
dot = false;
|
dot = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue