]> 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>
Fri, 25 Jul 2025 09:53:48 +0000 (10:53 +0100)
Fixes https://github.com/systemd/systemd/issues/38007

src/sysupdate/sysupdate-resource.c

index 4060deeddf5287f6c2e61bb659c0ce8039ef0906..549edcf9d4c12afdefad4d71064f70f37ba8e25d 100644 (file)
@@ -697,7 +697,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);