]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysupdate: Prevent unnecessary failure when a transfer Path is not present
authorNick Labich <nick@labich.org>
Thu, 24 Jul 2025 19:25:58 +0000 (15:25 -0400)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 4 Aug 2025 15:06:46 +0000 (16:06 +0100)
Fixes https://github.com/systemd/systemd/issues/38007

(cherry picked from commit 85e9805903d146f81551cb2c8398fb7f2345a55e)

src/sysupdate/sysupdate-resource.c

index 2f7a0880924a860ecf627b67e47a19faa49430d2..22d647cd772edfbca61bb51ca7422db7330d1b6a 100644 (file)
@@ -647,7 +647,7 @@ int resource_resolve_path(
 
         } else if (RESOURCE_IS_FILESYSTEM(rr->type)) {
                 _cleanup_free_ char *resolved = NULL, *relative_to = NULL;
-                ChaseFlags chase_flags = CHASE_PREFIX_ROOT;
+                ChaseFlags chase_flags = CHASE_NONEXISTENT | CHASE_PREFIX_ROOT;
 
                 if (rr->path_relative_to == PATH_RELATIVE_TO_EXPLICIT) {
                         assert(relative_to_directory);