FileSystem: Add FIXME about resolve_path bug

This commit is contained in:
Rok Povsic 2019-08-25 18:18:51 +02:00 committed by Andreas Kling
parent e36b9635df
commit eb9ccf1c0a
Notes: sideshowbarker 2024-07-19 12:31:53 +09:00

View file

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