Ticket #3537 (new defect) — at Version 1

Opened 9 years ago

Last modified 9 years ago

isofs doesn't show .dotfiles

Reported by: vda Owned by:
Priority: major Milestone: 4.8.16
Component: mc-vfs Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: merged Votes for changeset:

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).

Change History

Changed 9 years ago by vda

patch

comment:1 Changed 9 years ago by andrew_b

  • Component changed from mc-core to mc-vfs
  • Description modified (diff)
Note: See TracTickets for help on using tickets.