Commit ea129fb2 authored by topjohnwu's avatar topjohnwu

Allow cpio mv to override existing entries

parent 3356d7b6
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment