mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-11 13:39:55 +02:00
System/Libraries/FileSystem: Add FIXME to avoid path traversal issues
This commit is contained in:
@@ -72,6 +72,9 @@ U8* @filesystem_resolve_path(U8* path)
|
|||||||
|
|
||||||
I64 @filesystem_get_type(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)
|
if (!MemCmp(path, "/mnt/redsea/", 12) && StrLen(path) > 12)
|
||||||
return FS_TYPE_REDSEA;
|
return FS_TYPE_REDSEA;
|
||||||
if (!MemCmp(path, "/sys/", 5))
|
if (!MemCmp(path, "/sys/", 5))
|
||||||
|
|||||||
Reference in New Issue
Block a user