I'm trying to edit the contents of a war file on midnight commander (Mac OSX). With a normal zip file, this works fine. However, when I try to open a war file, I get an error message:
gzip: stdin has more than one entry–rest ignored
Cannot open tar archive
filepath/ugz://
This is probably some kind of configuration issue with mc. Any ideas how to resolve this?
Best Answer
Midnight commander tries to open war files as tgz files. Is should open them as zip files instead.
To fix this open "Edit extension file" in "Command" menue (F9, C, e). Search for ".war" and delete it from the listings. The modified listing should look like:
Then add the following snippet somewhere in the file: