mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:58:11 +00:00
Kernel: Propagate allocation failure in resolve_path_without_veil
This commit is contained in:
parent
cd92b73845
commit
726c023f9e
1 changed files with 3 additions and 3 deletions
|
@ -931,10 +931,10 @@ ErrorOr<NonnullRefPtr<Custody>> VirtualFileSystem::resolve_path_without_veil(Str
|
||||||
// We prepend a "." to it to ensure that it's not empty and that
|
// We prepend a "." to it to ensure that it's not empty and that
|
||||||
// any initial slashes it might have get interpreted properly.
|
// any initial slashes it might have get interpreted properly.
|
||||||
StringBuilder remaining_path;
|
StringBuilder remaining_path;
|
||||||
remaining_path.append('.');
|
TRY(remaining_path.try_append('.'));
|
||||||
remaining_path.append(path.substring_view_starting_after_substring(part));
|
TRY(remaining_path.try_append(path.substring_view_starting_after_substring(part)));
|
||||||
|
|
||||||
return resolve_path_without_veil(remaining_path.to_string(), symlink_target, out_parent, options, symlink_recursion_level + 1);
|
return resolve_path_without_veil(remaining_path.string_view(), symlink_target, out_parent, options, symlink_recursion_level + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue