Skip to content

Commit 3322ab6

Browse files
committed
[network-protocol][fs] skip dot files in open_dir()
1 parent a5f6c44 commit 3322ab6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/network-protocol/FS.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ bool NetworkProtocolFS::open_dir()
104104

105105
while (read_dir_entry((char *)entryBuffer.data(), ENTRY_BUFFER_SIZE - 1) == false)
106106
{
107+
if (entryBuffer.at(0) == '.' || entryBuffer.at(0) == '/')
108+
continue;
109+
107110
if (aux2_open & 0x80)
108111
{
109112
// Long entry

0 commit comments

Comments
 (0)