mirror of
https://github.com/systemd/systemd.git
synced 2025-03-14 04:58:28 +03:00
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') ||
|
||||
*q == '_';
|
||||
|
||||
if (!good)
|
||||
if (!good) {
|
||||
log_debug("The interface %s is invalid as it contains special character %c", p, *q);
|
||||
return false;
|
||||
}
|
||||
|
||||
dot = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user