mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 07:57:39 +00:00
Allow cpio mv to override existing entries
This commit is contained in:
parent
3356d7b6ff
commit
ea129fb206
@ -201,6 +201,7 @@ void cpio_rw::mv(entry_map::iterator &it, const char *to) {
|
||||
auto &name = static_cast<cpio_entry*>(ex.mapped().get())->filename;
|
||||
name = to;
|
||||
ex.key() = name;
|
||||
entries.erase(name);
|
||||
entries.insert(std::move(ex));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user