zip file (vfs) view/extract/delete problem
Roland Illig
roland.illig at gmx.de
Tue Dec 7 21:49:19 UTC 2004
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uzip.patch
Type: text/x-patch
Size: 4993 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20041207/abca28eb/attachment.bin>
More information about the mc-devel
mailing list