Bug 141065
Summary: | mc handles wrong symlinks in tar archives | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Doncho Gunchev <dgunchev> | ||||
Component: | mc | Assignee: | Jindrich Novy <jnovy> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | high | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3 | CC: | leonard-rh-bugzilla, mitr, pknirsch | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 4.6.1-0.11 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2004-12-01 12:10:00 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Doncho Gunchev
2004-11-29 02:08:56 UTC
Hello Doncho, I was able to reproduce the bug. I'm trying to fix it now. Thanks for the bugreport. Hi Doncho, you might want to report this issue upstream (mc-devel). It might have been caused by the latest changes to tar.c or vfs in general. Hi Leonard, I don't think this bug is very recent, I was able to reproduce it also with mc CVS checkout from 6th Sep. Doncho, so I finally found a solution for the bug. That was *fun* to browse through all the vfs mc code to figure out that the broken extraction/viewing of symlinks from tarfs is actually caused by sloppy commit in upstream, 2th Sep. 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. Created attachment 107544 [details]
Fix for bad extraction/viewing of symlinks from tarfs
Switching severity back to high since this may lead to data loss/corruption. Jindrich, please don't use UPSTREAM in vain :) . This resolution is ment for situations that will not be looked at downstream and might take a long time to get solved upstream. As this situation is now handled and the fix will be in a next release you better wait with closing this bug until the fix has trickled downstream (the next release), and then close it ERRATA or RAWHIDE or something. Hello all. Using mc-4.6.1-0.10 as base I recompiled mc with this patch and it works for me (bouth browsing and extraction). Many thanks for the amazingly quick response and fix! |