Prevent duplicates when "." or ".." occurs
This commit is contained in:
parent
fd5e42698c
commit
b245931c79
@ -77,6 +77,7 @@ cpio::cpio(const char *filename) {
|
||||
delete entry;
|
||||
if (trailer)
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
arr.push_back(entry);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user