]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysupdate-resource: on hash mismatch the best before marker is not ignored
authorMike Yuan <me@yhndnzj.com>
Wed, 21 Jan 2026 14:35:39 +0000 (15:35 +0100)
committerMike Yuan <me@yhndnzj.com>
Wed, 21 Jan 2026 14:48:14 +0000 (15:48 +0100)
Hence use a less ambiguous wording.

Follow-up for d0badc0a619e15c67d38f65730ac210316ece84c
Addresses https://github.com/systemd/systemd/pull/40393#discussion_r2709953179

src/sysupdate/sysupdate-resource.c

index bd1163153912f10e451ecc0a4eb0b8698c433fda..c9e69812613a34cd24c847f21626db9ec006a412 100644 (file)
@@ -382,7 +382,7 @@ static int process_magic_file(
          * so that people fix it. After all we want to retain liberty to maybe one day place some useful data
          * inside it */
         if (iovec_memcmp(&IOVEC_MAKE(expected_hash, sizeof(expected_hash)), hash) != 0)
-                log_warning("Hash of best before marker file '%s' has unexpected value, ignoring.", fn);
+                log_warning("Hash of best before marker file '%s' has unexpected value, proceeding anyway.", fn);
 
         struct tm parsed_tm = {};
         const char *n = strptime(e, "%Y-%m-%d", &parsed_tm);