Skip to content

Commit

Permalink
sys_fs: return ENOENT for relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 authored and Nekotekina committed Oct 3, 2020
1 parent 493e578 commit 888b520
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpcs3/Emu/Cell/lv2/sys_fs.cpp
Expand Up @@ -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};
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 888b520

Please sign in to comment.