]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysupdate: use strverscmp_improved() like everywhere else
authorLennart Poettering <lennart@amutable.com>
Tue, 14 Jul 2026 09:53:14 +0000 (11:53 +0200)
committerLennart Poettering <lennart@amutable.com>
Tue, 14 Jul 2026 20:32:27 +0000 (22:32 +0200)
At one location we accidentally called strverscmp() instead of
strverscmp_improved()

src/sysupdate/sysupdate.c

index 01b4a03f4d3531550eca87f9a7d5384b6c6b52be..53815d01c8adbc4f7e2a59e575858e160a297d32 100644 (file)
@@ -551,7 +551,7 @@ static int context_discover_update_sets_by_flag(Context *c, UpdateSetFlags flags
                                 if (boundary && strverscmp_improved(i->metadata.version, boundary) >= 0)
                                         continue; /* Not older than the boundary */
 
-                                if (cursor && strverscmp(i->metadata.version, cursor) <= 0)
+                                if (cursor && strverscmp_improved(i->metadata.version, cursor) <= 0)
                                         break; /* Not newer than the cursor. The same will be true for all
                                                 * subsequent instances (due to sorting) so let's skip to the
                                                 * next transfer. */