Commit b245931c authored by topjohnwu's avatar topjohnwu

Prevent duplicates when "." or ".." occurs

parent fd5e4269
...@@ -77,6 +77,7 @@ cpio::cpio(const char *filename) { ...@@ -77,6 +77,7 @@ cpio::cpio(const char *filename) {
delete entry; delete entry;
if (trailer) if (trailer)
break; break;
continue;
} }
arr.push_back(entry); arr.push_back(entry);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment