mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
FileSystem: Add FIXME about resolve_path bug
This commit is contained in:
parent
e36b9635df
commit
eb9ccf1c0a
Notes:
sideshowbarker
2024-07-19 12:31:53 +09:00
Author: https://github.com/rok-povsic Commit: https://github.com/SerenityOS/serenity/commit/eb9ccf1c0a6 Pull-request: https://github.com/SerenityOS/serenity/pull/473 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/bugaevc
1 changed files with 3 additions and 0 deletions
|
@ -637,6 +637,9 @@ Custody& VFS::root_custody()
|
|||
|
||||
KResultOr<NonnullRefPtr<Custody>> VFS::resolve_path(StringView path, Custody& base, RefPtr<Custody>* parent_custody, int options)
|
||||
{
|
||||
// FIXME: resolve_path currently doesn't deal with .. and . . If path is ../. and base is /home/anon, it returns
|
||||
// /home/anon/../. instead of /home .
|
||||
|
||||
if (path.is_empty())
|
||||
return KResult(-EINVAL);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue