Ticket #3537 (closed defect: fixed)
isofs doesn't show .dotfiles
Reported by: | vda | Owned by: | zaytsev |
---|---|---|---|
Priority: | major | Milestone: | 4.8.16 |
Component: | mc-vfs | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | #2851 | |
Branch state: | merged | Votes for changeset: | committed-master |
Description (last modified by andrew_b) (diff)
There appears to be an easy bug in iso9660 helper:
if (name ~ /^\.\.?/) next
means "skip all lines which start with one or two dots".
Author probably meant: if (name ~ /^\.\.?$/) next
I propose to not be cryptic and just check both possibilities separately.
The below trivial patch was tested to work: now I see
the file named ".dot" in a test iso file.
(Note: there seems to be another bug: SEMICOLON = "YES"
is not a correct comparison (should use ==),
it's assignment! As a result, sub(";1$", "", name);
is always executed).
Attachments
Change History
Changed 9 years ago by vda
- Attachment 0001-iso9660-dotfiles.patch added
comment:1 Changed 9 years ago by andrew_b
- Component changed from mc-core to mc-vfs
- Description modified (diff)
comment:2 Changed 9 years ago by zaytsev
- Owner set to zaytsev
- Status changed from new to accepted
- Branch state changed from no branch to on hold
- Milestone changed from Future Releases to 4.8.15
Branch: 3537_isofs_dotfiles.
Changeset: [e591862f219f7d8d11cacc894aa80f7b9fc18960].
Denys, could you please be so kind as to make a "SEMICOLON = "YES"" patch, so that we can close everything in one go? Thanks!
Changed 9 years ago by vda
- Attachment 0001-isofs-fix-incorrect-awk-comparison-operator.patch added
SEMICOLON == "YES" fix
comment:3 Changed 9 years ago by vda
The SEMICOLON == "YES" patch is technically correct, but if, say, SEMICOLON="YES" isn't set correctly somewhere (imagine another bug), the result of this patch may be that isofs would start showing files with FILE;N suffixes.
comment:7 Changed 9 years ago by andrew_b
- Votes for changeset set to andrew_b
- Branch state changed from on hold to approved
comment:8 Changed 9 years ago by andrew_b
- Status changed from accepted to testing
- Votes for changeset changed from andrew_b to committed-master
- Resolution set to fixed
- Branch state changed from approved to merged
Merged to master: [24d09babd8d60946217d4eeede5769c9a7d4b282].
git log --pretty=oneline 2540595..24d09ba
patch