diff --git a/native/jni/utils/cpio.cpp b/native/jni/utils/cpio.cpp index 6eecdf7fa..f7ae9b927 100644 --- a/native/jni/utils/cpio.cpp +++ b/native/jni/utils/cpio.cpp @@ -201,6 +201,7 @@ void cpio_rw::mv(entry_map::iterator &it, const char *to) { auto &name = static_cast(ex.mapped().get())->filename; name = to; ex.key() = name; + entries.erase(name); entries.insert(std::move(ex)); }