Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
I think issue introduced: request to fix: – akostadinov Feb 28 '13 at 14:06

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:

# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk, .gem
<------>Open=%cd %p/utar://
<------>View=%view{ascii} /usr/local/Cellar/midnight-commander/4.8.7/libexec/mc/ext.d/ view tar.gz

Then add the following snippet somewhere in the file:

# .war
<------>Open=%cd %p/uzip://
<------>View=%view{ascii} /usr/local/Cellar/midnight-commander/4.8.7/libexec/mc/ext.d/ view zip
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.