projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d68c6be
)
bootspec: complain about loader.conf lines without parameter
author
Lennart Poettering
<lennart@poettering.net>
Fri, 2 Sep 2022 09:33:48 +0000
(11:33 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 2 Sep 2022 14:22:46 +0000
(16:22 +0200)
src/shared/bootspec.c
patch
|
blob
|
history
diff --git
a/src/shared/bootspec.c
b/src/shared/bootspec.c
index ebb172404b358048e1fa36c3fdc04081516e48ca..3ca65454c1ac8a1c7a28436f770bc79fed864370 100644
(file)
--- a/
src/shared/bootspec.c
+++ b/
src/shared/bootspec.c
@@
-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);