mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 11:55:44 +03:00
network: Make sure we log about parse errors for ifname lists
Fix-up for 93e2822684
This commit is contained in:
parent
bbc0c09448
commit
a9dd908d09
@ -200,8 +200,10 @@ int config_parse_ifnames(
|
||||
_cleanup_free_ char *word = NULL;
|
||||
|
||||
r = extract_first_word(&rvalue, &word, NULL, 0);
|
||||
if (r < 0)
|
||||
return r;
|
||||
if (r < 0) {
|
||||
log_syntax(unit, LOG_ERR, filename, line, 0, "Failed to parse interface name list: %s", rvalue);
|
||||
return 0;
|
||||
}
|
||||
if (r == 0)
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user