Hardlinks destroyed by internal unRAR

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Hardlinks destroyed by internal unRAR

Post by *StatusQuo »

Unpacking & overwriting files with internal unRAR (and unACE) destroys the hardlinks of the target files.

Hardlink OK after overwriting:
OK: normal copying in TC
OK: ARJ (2.41)
OK: LZH (LHA 2.13)
OK: TAR (TC internal)
OK: TGZ (TC internal)
OK: UC2 (TC internal)
OK: ZIP (TC internal)

Hardlink is gone, resulting in seperate files:
fail: RAR (WinRar 3.62; external unpacker OK)
fail: ACE (WinAce 2.61; external unpacker fails, too)

ACE: WinAce itself (2.61 and 2.0) also destroys hardlinks. I reported this at winace.de .

RAR: Workaround: Switching off [ ] use internal un-RAR if possible solves the problem so far (leaves the hardlink intact).

I would very much appreciate hardlink-compatible behaviour also on TC-internal unpacking of RAR archives.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

As I remember, the unrar.dll function RARProcessFile does not overwrite already existing files, so TC calls DeleteFile before calling RARProcessFile with the extract parameter. The other packers work differently: They open the target file if it exists, and then write to it. So unfortunately I cannot change this behaviour of internal unrar, sorry.
Author of Total Commander
https://www.ghisler.com
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

OK, thanks for the info. I'll try to stick with the external solution then.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
Post Reply