zip file (vfs) view/extract/delete problem

Doncho N. Gunchev mr700 at globalnet.bg
Wed Dec 8 09:59:41 UTC 2004


On 2004 12 07 (Tuesday) 23:49, Roland Illig wrote:
> Doncho N. Gunchev wrote:
> >     I tested http://people.redhat.com/jnovy/files/mc-4.6.1-0.11.src.rpm
> > with this patch applied and it works partially - view, edit and extract
> > is fine, but delete fails (ex: 'zip warning: name not matched: ./edit2.html').
> > If first edited and saved, which changes the name from './something' to
> > 'something', the file can be deleted.
> 
> This is not my fault. Try to run
> 
>      $ zip -d p.zip ./edit.html
>      $ zip -d p.zip edit.html
>      $ zip -d p.zip '*'/edit.html
> 
> and you will see that zip(1) itself is not able to delete the file.
> (I am using Info-ZIP 2.3 (November 29th 1999).)
> 
> The workaround is to convert pathnames starting with "./" into pathnames 
> that start with "[.]/". This way Info-ZIP does not strip the leading 
> "./" components. That's nice, isn't it?
> 
> Roland
> 
    Thanks, I'll try to contact infozip's authors. I wonder why infozip
touches this at all and why still prints it can't find the original,
untouched, name... With 'zip -r p.zip edit.html' it replaces './edit.html'
with 'edit.html' - that's why editing a file worked. I'm going to
http://www.info-zip.org/zip-bug.html now. Thanks again.

-- 
Regards,
  Doncho N. Gunchev    Registered Linux User #291323 at counter.li.org
  GPG-Key-ID: 1024D/DA454F79                        http://pgp.mit.edu
  Key fingerprint = 684F 688B C508 C609 0371  5E0F A089 CB15 DA45 4F79



More information about the mc-devel mailing list