mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-10-05 12:35:58 -04:00
Allow cpio mv to override existing entries
This commit is contained in:
1 parent
3356d7b6ff
commit
ea129fb206
1 file changed
+1
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user