From: Burak Gerz Date: Fri, 29 Mar 2024 23:41:51 +0000 (+0100) Subject: sysupdate: print assumed value X-Git-Tag: v256-rc1~350 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=911e2d479e4f600ad804cb8921fb114d84283129;p=thirdparty%2Fsystemd.git sysupdate: print assumed value The MatchPattern= in Target specification is documented as mandatory, but if not defined sysupdate will assume the same value as definied in Source specification and continue execution. Print this assumptions to the user --- diff --git a/src/sysupdate/sysupdate-transfer.c b/src/sysupdate/sysupdate-transfer.c index b350f83065e..ab4eab6780f 100644 --- a/src/sysupdate/sysupdate-transfer.c +++ b/src/sysupdate/sysupdate-transfer.c @@ -532,6 +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"); strv_free(t->target.patterns); t->target.patterns = strv_copy(t->source.patterns); if (!t->target.patterns)