mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
sys_fs: return ENOENT for relative paths
This commit is contained in:
parent
493e57837b
commit
888b520b31
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
|||
LOG_CHANNEL(sys_fs);
|
||||
|
||||
lv2_fs_mount_point g_mp_sys_dev_root;
|
||||
lv2_fs_mount_point g_mp_sys_no_device;
|
||||
lv2_fs_mount_point g_mp_sys_dev_hdd0{"/dev_hdd0"};
|
||||
lv2_fs_mount_point g_mp_sys_dev_hdd1{"/dev_hdd1", 512, 32768, lv2_mp_flag::no_uid_gid};
|
||||
lv2_fs_mount_point g_mp_sys_dev_usb{"", 512, 4096, lv2_mp_flag::no_uid_gid};
|
||||
|
@ -63,7 +64,7 @@ lv2_fs_mount_point* lv2_fs_object::get_mp(std::string_view filename)
|
|||
if (pos == 0)
|
||||
{
|
||||
// Relative path (TODO)
|
||||
break;
|
||||
return &g_mp_sys_no_device;
|
||||
}
|
||||
|
||||
if (pos == umax)
|
||||
|
|
Loading…
Add table
Reference in a new issue