Consider protected files when unpacking LHA files

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
awoesten
Junior Member
Junior Member
Posts: 2
Joined: 2019-08-05, 07:53 UTC

Consider protected files when unpacking LHA files

Post by *awoesten »

Hi,

I'm often working with LHA files for data exchange with my Amiga. For that I use LHA 1.06 by Take and UnLHA32.DLL 1.95b by Micco which is the only way to work with LHA files on Windows / Total Commander in a reliable way.

There's just one bug: Amiga archives often contain .info files which are most of the time hidden/protected. I debugged that you pass the options

Code: Select all

x [file-to-unpack] [destination-path] -x1 -r2 -m0 -c 
But this way the option -a0 is set by default which means

"If '-a0' option is specified when extracting files, hidden and system files in the archive file are not extracted. Read-only files are extracted but the extracted file will not have read-only attribute." (from UnLHA32.DLL documentation)

If you now pass -a1 too, also these files will be readable and extractable:

"If '-a1' option is specified when extracting files, all files are extracted with file attribute specified in the archive file."

Therefore my bug report/feature request is to add -a1 as command line parameter to external LHA32 calls.

Thank you.
André
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Consider protected files when unpacking LHA files

Post by *ghisler(Author) »

Have you tried adding the parameter in the TC settings behind die packer name?
Author of Total Commander
https://www.ghisler.com
awoesten
Junior Member
Junior Member
Posts: 2
Joined: 2019-08-05, 07:53 UTC

Re: Consider protected files when unpacking LHA files

Post by *awoesten »

That works! Thanks!
Post Reply