[MultiArc] Beware of possibility to lost files during unpacking+renaming operation

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Damel
Member
Member
Posts: 130
Joined: 2003-02-06, 01:11 UTC
Location: Prague, Czech Republic

[MultiArc] Beware of possibility to lost files during unpacking+renaming operation

Post by *Damel »

MultiArc is the culprit

If you try to unpack a file (name this one the "unpacked file") into a path where a file with the same name already exists (name this one the "original file") and you choose to rename it - but you use again also already existing name (because you want or by accident), then after confirmed overwriting occurs "Disk read error!", and unsurprisingly unpacked file isn't unpacked & original file isn't overwritten either - but (and be beware of this) original file is deleted and lost!

[Archive.CAB/File.EXT] unpack to the [C:\<path>\] where [File.EXT] already exists (it can be just some file of the same name as the unpacked one has)
So you choose [Rename]
File.EXT rename to File2.EXT or File.EXT2 (you change file name or extension to some name.ext combination which already exists in the target directory)
Because a file of that name already exists, it asks if you want to Overwrite it
You choose [OK]
[Disk read error!] message appears
[OK]
The file which was in the target directory is lost (it isn't even in Recycle bin)!

I don't know if this is a bug or a system feature, but users of MultiArc should be aware of the possibility to lose their files this way.

EDIT: It doesn't occur with every archive. It must be an archive of type/extension handled by MultiArc.
The best solution:
1. format C:
2. install TotalCmd
3. install Windows (optionally)
Post Reply