Consider protected files when unpacking LHA files

Please report only one bug per message!

Moderators: sheep, Hacker, Stefan2, white

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 » 2019-08-05, 07:59 UTC

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: 38384
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Consider protected files when unpacking LHA files

Post by *ghisler(Author) » 2019-08-05, 13:57 UTC

Have you tried adding the parameter in the TC settings behind die packer name?
Author of Total Commander
http://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 » 2019-08-05, 17:08 UTC

That works! Thanks!

Post Reply