udev: make udevadm and friends not warn about unknown settings
Without this change, when e.g. event_timeout= is specified in udev.conf,
udevadm and friends which loads udev.conf warn about unknown key:
===
$ udevadm info /sys/class/net/lo
/run/udev/udev.conf.d/test-17.conf:1: Unknown key 'event_timeout', ignoring.
/run/udev/udev.conf.d/test-17.conf:2: Unknown key 'timeout_signal', ignoring.
===
Follow-up for 07f5e35fe7 (v256).
This commit is contained in:
committed by
Luca Boccassi
parent
69369fd322
commit
90670111a9
@@ -41,7 +41,12 @@ int udev_parse_config_full(const ConfigTableItem config_table[]) {
|
||||
int udev_parse_config(void) {
|
||||
int r, log_val = -1;
|
||||
const ConfigTableItem config_table[] = {
|
||||
{ NULL, "udev_log", config_parse_log_level, 0, &log_val },
|
||||
{ NULL, "udev_log", config_parse_log_level, 0, &log_val },
|
||||
{ NULL, "children_max", NULL, 0, NULL },
|
||||
{ NULL, "exec_delay", NULL, 0, NULL },
|
||||
{ NULL, "event_timeout", NULL, 0, NULL },
|
||||
{ NULL, "resolve_names", NULL, 0, NULL },
|
||||
{ NULL, "timeout_signal", NULL, 0, NULL },
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user