mirror of
https://github.com/systemd/systemd
synced 2024-10-14 20:17:52 +00:00
sysupdate: use log_syntax() when logging about a configuration file
All code around this does this too, hence do it here as well. Also fix plural verb form. Follow-up for: #32018
This commit is contained in:
parent
94ad70989f
commit
dca15bd905
|
@ -532,7 +532,7 @@ int transfer_read_definition(Transfer *t, const char *path) {
|
|||
"Target path is not a normalized, absolute path: %s", t->target.path);
|
||||
|
||||
if (strv_isempty(t->target.patterns)) {
|
||||
log_info("Target specifications lacks MatchPattern=. Assuming same value as in Source specification");
|
||||
log_syntax(NULL, LOG_INFO, path, 1, 0, "Target specification lacks MatchPattern= expression. Assuming same value as in source specification.");
|
||||
strv_free(t->target.patterns);
|
||||
t->target.patterns = strv_copy(t->source.patterns);
|
||||
if (!t->target.patterns)
|
||||
|
|
Loading…
Reference in a new issue