dskvr / opkg

Automatically exported from code.google.com/p/opkg
0 stars 0 forks source link

long symlink paths may be truncated #72

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If a tarball contains a long symlink (over 100 chars) in a longpath (over 100 
chars) then the resulting link or path can be truncated to 100 chars.

This is due to a bug where if both 'L' and 'K' entries are found in the tarball,
only the first one takes affect due to get_header_tar recursively calling 
itself.
To fix this, process longname and linkname at the end of the function rather 
than the start after any subcalls have taken place.

Original issue reported on code.google.com by graham.g...@gmail.com on 23 Dec 2010 at 12:57

Attachments:

GoogleCodeExporter commented 8 years ago
Richard's patch applied as r594.

Original comment by graham.g...@gmail.com on 23 Dec 2010 at 1:42