From 6b24ed11a1de82579748db93ceb44419080d1523 Mon Sep 17 00:00:00 2001 From: DH Date: Sat, 25 Nov 2023 11:31:04 +0300 Subject: [PATCH] [rpcsx-os] open dir: ignore '.' --- rpcsx-os/io-device.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcsx-os/io-device.cpp b/rpcsx-os/io-device.cpp index 84d902c89..b73f7a939 100644 --- a/rpcsx-os/io-device.cpp +++ b/rpcsx-os/io-device.cpp @@ -514,7 +514,8 @@ orbis::ErrorCode HostFsDevice::open(orbis::Ref *file, if (r <= 0) break; - if (hostEntry.d_name == std::string_view("..")) { + if (hostEntry.d_name == std::string_view("..") || + hostEntry.d_name == std::string_view(".")) { continue; }