Bug 202623
Summary: | mc crashes when deleting a directory with a bogus symlink over shell link | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Radek Bíba <rbiba> |
Component: | mc | Assignee: | Jindrich Novy <jnovy> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5 | CC: | leonard-rh-bugzilla, mbarabas, pknirsch |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-08-23 13:04:14 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: |
Description
Radek Bíba
2006-08-15 15:20:42 UTC
Having a look into the FISH code I have to say that it is pretty much beyond all repair and may need rewrite. I fixed at least the parsing of the output of `ls -Llan' what FISH uses to get file list from remote box so that mc no more segfaults because of corrupted vfs input obtained from FISH. You sure about the solution? When I try to view the directory with the symlink now, it's displayed as '!/root/test/a' (was: '/') and the status bar reads '<readlink failed>'. It cannot be deleted, neither directly nor recursively from the parent directory. Please don't close this bug until it's resolved, i.e. mc is able to delete such symlink, it's not enough that it doesn't crash anymore. Thanks. The bug report summary says: "mc crashes when deleting a directory with a bogus symlink over shell link" I fixed it, so it doesn't crash any more. The problem with dangled symlink deletion doesn't seem to be related to this fix as it doesn't depend on the dangled symlink name (/root/test/a for instance) and the dangled symlink was impossible to delete via fish even if it is named only "a". The "/" symlink name comes from uninitialized memory and we are lucky that FISH is unable to delete it as mc then resolves this name as a link to your local root. (try to press enter with the unfixed mc on the '/' "dangling symlink"...) The reason is that FISH is completely screwed since it doesn't know symlinks. Note that non-dangling symlinks are shown as normal files. Please report another bug. mc-4.6.1a-26.fc5 has been pushed for fc5, which should resolve this issue. If these problems are still present in this version, then please make note of it in this bug report. |