bootspec: complain about loader.conf lines without parameter

This commit is contained in:
Lennart Poettering
2022-09-02 16:22:46 +02:00
parent d68c6bea5e
commit 9ac2a89a8f
+4
View File
@@ -369,6 +369,10 @@ int boot_loader_read_conf(BootConfig *config, FILE *file, const char *path) {
log_syntax(NULL, LOG_WARNING, path, line, 0, "Bad syntax, ignoring line.");
continue;
}
if (isempty(p)) {
log_syntax(NULL, LOG_WARNING, path, line, 0, "Field '%s' without value, ignoring line.", field);
continue;
}
if (streq(field, "default"))
r = free_and_strdup(&config->default_pattern, p);