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

This commit is contained in:
topjohnwu 2018-12-09 22:12:04 -05:00
parent fd5e42698c
commit b245931c79

View File

@ -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);
} }