broken extraction/viewing fix from tarfs

Jindrich Novy jnovy at redhat.com
Mon Nov 29 16:08:15 UTC 2004


Hi,

this patch fixes broken extraction and displaying of symlinks from
tarfs, but possibly affects any vfs that uses vfs_s_readlink ().

To see description and steps to reproduce please see:
http://bugzilla.redhat.com/beta/show_bug.cgi?id=141065

In vfs_s_readlink () there is incorrectly calculated length of buf
instead of link name in the inode. The random size you may see when
extracting symlinks from tarfs is caused by the fact that buf is mostly
uninitialized so the link is truncated almost at random position.

-- 
Jindrich Novy <jnovy at redhat.com>, http://people.redhat.com/jnovy/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mc-CVS-20041129-badsymlinks.patch
Type: text/x-patch
Size: 429 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20041129/0ad6a893/attachment.bin>


More information about the mc-devel mailing list