System/Libraries/FileSystem: Add FIXME to avoid path traversal issues

This commit is contained in:
Alec Murphy
2025-09-24 17:46:18 -04:00
parent b7574375ae
commit 9820018d77

View File

@@ -72,6 +72,9 @@ U8* @filesystem_resolve_path(U8* path)
I64 @filesystem_get_type(U8* path)
{
// FIXME: We are always returning RedSea until FileSystem library and APIs are rewritten.
return FS_TYPE_REDSEA;
if (!MemCmp(path, "/mnt/redsea/", 12) && StrLen(path) > 12)
return FS_TYPE_REDSEA;
if (!MemCmp(path, "/sys/", 5))