sysupdate: Prevent unnecessary failure when a transfer Path is not present

Fixes https://github.com/systemd/systemd/issues/38007
This commit is contained in:
Nick Labich
2025-07-24 15:25:58 -04:00
committed by Luca Boccassi
parent c4ffd0a020
commit 85e9805903

View 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);